Hi Team,
I have explored rest api's of Confluence. I was not able to find any Rest API which would provide complete list of all the users present in User Management section of Confluence.
There is API which would list out users present in "confluence-users" group. But In our Confluence instance there are many users who are not present in these groups but synced from Microsoft Active Directory. So I need to fetch all the users present in Confluence User Management page.
Can anyone please help me with this?
Thanks & Regards,
Preethi H R
Generally, with integration of AD, users will be synced from AD into the confluence-users group. But, to absolutely verify, you can leverage the "group" endpoint (/rest/api/group) and then extract the members from each group. This will give you all groups/users synced into Confluence. You will likely have duplication of users because they may be members of many groups.
Example here: https://github.com/nefariousOne/confluence-rest-api-samples/blob/main/confluence_get_group_members.py
Hi Matt,
Thank you very much for your reply. As suggested, we can fetch all groups in Confluence and then members from each group. This would give us all users synced in Confluence User management.
But there are few users who have been removed from Confluence User Management and are shown on UI as "Unknown User". Do you have any idea how to fetch these types of users as well. Attaching the screenshot for reference. In the screenshot, the user novita.chelluri is shown as Unknown User as she is removed from Confluence User management. How do we fetch this user?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted], if you have access to the DB, you can try this:
How to get a list of all "Unknown User" in Confluence | Confluence | Atlassian Documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matt,
Thank you for your response. Is there any API to make active users as "Unknown user" in Confluence?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, I don't believe so. The /user endpoint only allows for GET requests.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah fine. Thank you, Matt, for all your suggestions and they were very helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.