09-21-2012 01:34 PM
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 ?
09-21-2012 02:00 PM
Did you try. It must work... Did you have some trouble ?
09-21-2012 02:30 PM
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.
09-24-2012 12:34 PM
But how do we set permissions to a group ? Can we use setACE for a group instead of a user ?
09-26-2012 01:42 PM
Just put the group name
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.