As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
We are planning to use groups to set the domain permissions for a group of users. Are there any examples on how to create a group and then call the SetACE for a group instead of a user ?
Did you try. It must work... Did you have some trouble ?
I mean how to create to group using nuxeo operation. I can see it being done using Admin tool but how to do it using nuxeo operation by REST call.
There is no Group creation operation, neither user creation operation. You will have to create your own operation with Nuxeo IDE.
There is a Nuxeo Service that manage users and groups.
UserManager userManager = Framework.getService(UserManager.class); if (userManager == null) { throw new Exception("unable to get userManager service"); } DocumentModel newUser = userManager.getBareUserModel(); ... initialize values ... userManager.createUser(newUser)
idem for groups.
DocumentModel newGroup = userManager.getBareGroupModel(); ... initialize values ... userManager.createGroup(newGroup)
see user.xsd schema and group schema for field names.
Hope this will help you.
But how do we set permissions to a group ? Can we use setACE for a group instead of a user ?
Just put the group name