cancel
Showing results for 
Search instead for 
Did you mean: 

Are there any examples of using groups and then doing SetACE operation ?

smalis_
Champ on-the-rise
Champ on-the-rise

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 ?

5 REPLIES 5

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Did you try. It must work... Did you have some trouble ?

smalis_
Champ on-the-rise
Champ on-the-rise

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.

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

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

Getting started

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.