Manages role permissions for content nodes.
getGroupMemberByGroupName(groupName: string, opts?: any): Observable<GroupMemberPaging>
Gets all members related to a group name.
string - Name of group to look for membersany - (Optional) Extra options supported by JS-APIObservable<GroupMemberPaging> - List of membersgetInheritedPermission(node: Node): PermissionDisplayModel[]
Node - PermissionDisplayModel[] - getLocalPermissions(node: Node): PermissionDisplayModel[]
Node - PermissionDisplayModel[] - getNodePermissions(node: Node): PermissionDisplayModel[]
Node - PermissionDisplayModel[] - getNodeRoles(node: Node): Observable<string[]>
Gets a list of roles for the current node.
Node - The target nodeObservable<string[]> - Array of strings representing the rolesgetNodeWithRoles(nodeId: string): Observable<Function>
Gets all node detail for nodeId along with settable permissions.
string - Id of the nodeObservable<Function> - node and it's associated roles { node: Node; roles: RoleModel[] }removePermission(node: Node, permissionToRemove: PermissionElement): Observable<Node>
Removes a permission setting from a node.
Node - ID of the target nodePermissionElement - Permission setting to removeObservable<Node> - Node with modified permissionsremovePermissions(node: Node, permissions: PermissionElement[]): Observable<Node>
Removes permissions setting from a node.
Node - target node with permissionPermissionElement[] - Permissions to removeObservable<Node> - Node with modified permissionstransformNodeToUserPerson(node: Node): Function
Node - Function - updateLocallySetPermissions(node: Node, permissions: PermissionElement[]): Observable<Node>
Updates the locally set permissions for a node.
Node - ID of the target nodePermissionElement[] - Permission settingsObservable<Node> - Node with updated permissionsupdateNodePermissions(nodeId: string, permissionList: PermissionElement[]): Observable<Node>
Update permissions for a node.
string - ID of the target nodePermissionElement[] - New permission settingsObservable<Node> - Node with updated permissionsupdatePermissionRole(node: Node, updatedPermissionRole: PermissionElement): Observable<Node>
Updates the permission role for a node.
Node - Target nodePermissionElement - Permission role to update or addObservable<Node> - Node with updated permissionupdatePermissions(node: Node, permissions: PermissionElement[]): Observable<Node>
updates permissions setting from a node.
Node - target node with permissionPermissionElement[] - Permissions to updateObservable<Node> - Node with modified permissionsThis service requires the Content Services Groups API, which is available from version 5.2.1.
See the Groups API docs in the Alfresco JS API for more information about the types returned by the methods and for the implementation of the REST API the service is based on.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.