cancel
Showing results for 
Search instead for 
Did you mean: 

How can I grant permission 'directoriesManagementAccess' to group diffrent from Administrator and power users?

Mariem_Ben_Maal
Confirmed Champ
Confirmed Champ

Hello, How can I grant permission 'directoriesManagementAccess' to group diffrent from Administrator and power users? In fact I want to add new entries to a vocabulary using Directoy.CreateVocabulryEntry operation but I got this message on server.log "Failed to invoke operation: Directory.CreateVocabularyEntry, Failed to invoke operation Directory.CreateVocabularyEntry, User user does not have Write permission"

1 ACCEPTED ANSWER

Ahmad_Ben_Maall
Star Contributor
Star Contributor

You can also try adding permission on directory declaration as follows:

<extension target="org.nuxeo.ecm.directory.GenericDirectory" point="directories">  
    <directory name="MyVocab" extends="template-vocabulary">
      ....
      <permissions>
        <permission name="Write">
          <group>Everyone</group> <!-- you can set your specific group(s) -->
        </permission>
      </permissions>
      .....
    </directory>

View answer in original post

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

I believe you can't OOTB and you would have to create a custom automation chain with the Auth.LoginAs operation with a user with enough priviledges

Ahmad_Ben_Maall
Star Contributor
Star Contributor

You can also try adding permission on directory declaration as follows:

<extension target="org.nuxeo.ecm.directory.GenericDirectory" point="directories">  
    <directory name="MyVocab" extends="template-vocabulary">
      ....
      <permissions>
        <permission name="Write">
          <group>Everyone</group> <!-- you can set your specific group(s) -->
        </permission>
      </permissions>
      .....
    </directory>