Skip to content

Groups

Groups Component

Used to sync groups from a source instance to a destination instance of Swimlane

sync_group

This class syncs a single source instance group to a destination instance.

We begin by processing the provided group and ensuring that all roles and users associated with the provided group are added to the destination instance.

Once that is complete, we then sync any nested groups within the provided source instance group.

If the provided group is already on the destination instance, then we just skip processing but if the provided group is not on the destination instance we add it.

def sync_group(self, group: aqueduct.models.group.Group)

sync

This method is used to sync all groups from a source instance to a destination instance

def sync(self)

Group Model

Group

A Swimlane Group object model

__attrs_init__(self, disabled, id, name, description='', createdByUser={}, createdDate='', modifiedByUser={}, modifiedDate='', permissions={}, roles=[], users=[], groups=[]) special

Method generated by attrs for class Group.

Source code in aqueduct/models/group.py
def __attrs_init__(self, disabled, id, name, description=attr_dict['description'].default, createdByUser=attr_dict['createdByUser'].default, createdDate=attr_dict['createdDate'].default, modifiedByUser=attr_dict['modifiedByUser'].default, modifiedDate=attr_dict['modifiedDate'].default, permissions=attr_dict['permissions'].default, roles=attr_dict['roles'].default, users=attr_dict['users'].default, groups=attr_dict['groups'].default):
    self.disabled = disabled
    self.id = id
    self.name = name
    self.description = description
    self.createdByUser = createdByUser
    self.createdDate = createdDate
    self.modifiedByUser = modifiedByUser
    self.modifiedDate = modifiedDate
    self.permissions = permissions
    self.roles = roles
    self.users = users
    self.groups = groups
    self.__attrs_post_init__()