get_tasks_collection_acl
Retrieves a list of users/groups with permissions on all tasks, including a boolean indication if ACL inheritance is disabled or enabled for each task.
The method returns the explicit ACL only. In other words, it does not return inherited ACLs.
If all of the tasks' ACLs are inherited (that is, no ACL was explicitly defined for any of the tasks), an error will be returned indicating that no ACL was found.
This method can be used together with put_tasks_collection_acl in order to update an existing task's ACL. First call get_tasks_collection_acl, then edit the returned roles as required, and finally, call put_tasks_collection_acl.
Required User Role: See Required Enterprise Manager permissions.
Syntax
def get_tasks_collection_acl(
self,
server
)
Parameters
| Parameter | Type | Description |
| server | string | The name of the server where the tasks are located. |
Return values
AemAuthorizationAcl
| Parameter | Type | Description |
|
DisableInheritance |
bool |
If set to "true", the task does not inherit ACLs from its ancestors (in addition to its explicit ACLs). If set to "false", the server inherits ACLs from its ancestors, in addition to any explicit ACLs. |
|
AdminRole |
AemRoleDef |
Users and/or groups assigned as Admin role. |
|
DesignerRole |
AemRoleDef |
Users and/or groups assigned as Designer role. |
|
OperatorRole |
AemRoleDef |
Users and/or groups assigned as Operator role. |
|
ViewerRole |
AemRoleDef |
Users and/or groups assigned as Viewer role. |
|
Groups |
List<AemGroupRef> |
Groups assigned as the role. |
|
Name |
string |
The group name. |
|
Users |
List<AemUserRef> |
Users assigned as the role. |
|
Name |
string |
The user name. |
Errors
All of the general errors as well as the errors listed in the table below.
| Error | Message | Description |
|
AEM_GET_TASK_ACL_INNER_ERR |
Failed to get ACL of task "{task}". Error: "{message}". |
Returned if Qlik Enterprise Manager encounters an error/exception when trying to get the task ACL. |
|
AEM_TASK_HAS_NO_ACL |
ACL for task "{task}" could not be found. |
Returned if no explicit ACL is defined for the task. Information note
A task that does not have its own explicit ACL inherits the ACL from its ancestors. Inherited ACLs are not returned by this method. |