Cannot add group member to confluence user group, using active directory at the same time
Asked by Ren? Herrmann:

I have got a confluence 3.5 setup with the following directories enabled:

* Confluence Internal Directory
* Active Directory server (Read Only)

My assumption was, that I could manage confluence-only groups on the confluence system for certain editor-management (not company organisation relevant groups). I am able to create new confluence groups but get the following error if I try to add members to it:
> Could not add user 'john.doe' as a member of group 'management-editor'. Check your server logs for more information.

```
2012-06-28 09:10:51,922 ERROR [http-8443-5] [bucket.user.DefaultUserAccessor] addMembership Failed to add 'john.doe' as a member of 'management-editor' -- referer: https://testpagexy.com/admin/users/domembersofgroupsearch.action?membersOfGroupTerm=management-editor | url: /admin/users/adduserstogroup.action | userName: john.doe | action: adduserstogroupcom.atlassian.user.EntityException: com.atlassian.crowd.exception.OperationNotPermittedException: com.atlassian.crowd.exception.ApplicationPermissionException: Group 'management-editor' does not exist in the directory of the user and cannot be added.
```

```
at com.atlassian.crowd.embedded.atlassianuser.EmbeddedCrowdGroupManager.addMembership(EmbeddedCrowdGroupManager.java:169)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.springfra...
```

Question: According to the exception message: why does the group has to exist already in the directory of the user?

Thank you very much for any hint.

Ren?

**Appendix 26.6.12:** Screenshot of the directory order screen:

![](../../../upfiles/confluence_directory_order.jpg)


Answers:
author: Lionel CONFORTO
body: Hi, I had the same expectation : being able to add LDAP users to local groups. And I had the same problem. I found a note that was useful and helped me solve the problem:

<https://confluence.atlassian.com/display/CONFKB/Unable+to+Add+Users+into+a+Group+Due+to+Lack+of+Permission>

The note mentions 2 queries : in my case, I just applied query #1, I restarted the server and it was enough.

Please make sure to test in a development platform first,

Best regards, Lionel


author: Jodie Miners
body: Yes, I have the same issue. Any ideas? It's not a big deal, as we can just use the existing AD groups, but I would like to know if it is possible and how you can have multiple directories working together.


author: Jodie Miners
body: Yes, I have the same issue. Any ideas? It's not a big deal, as we can just use the existing AD groups, but I would like to know if it is possible and how you can have multiple directories working together.


author: Ren? Herrmann
body: Thank you for your answer @oilspace sysadmin. It seems that the directory order is already setup like you are suggesting. Any other idea?


author: Aspect Infra Team
body: Looks like "Active Directory server (Read Only)" is first user directory in your directory list

Confluence write changes you want to do into first directory listed and fails due to read-only status of userdirectory


Tags: active-directory

group

permission