You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
In my environment we create a collection of groups in Crowd to support role based access controls. We recently upgraded to Crowd Data Center and want to take advantage of the ability to distribute administration of groups.
The group-level-admin set of REST methods seems like it supports this, however, all them require groupId, which isn't the name of the group. I've tested the following rest methods, but none of them include the group ID needed by the group-level-admin methods:
The POST /rest/admin/1.0/groups/query method returns the group ID, but this only works if someone is already configured to be an admin of the group, which won't be the case in my environment.
Strangely enough POST /rest/admin/1.0/users/search and GET /rest/admin/1.0/directory/managed return the user ID and directory ID, but the equivalent functionality for groups doesn't.
How can I, through the Crowd REST interface get the group ID of a group if I only know the name of the group and the directory it is in?
If that functionality isn't there, are there any plugins that provide it, or plans to add it in the future? Even through the web interface I couldn't find a way to see the group ID. It seems odd that these REST methods would be added, but not a way to get the information that they require.
Thank you
A bit of trial and error it looks like the groupId is <directory ID>-<base 64 encoded group name>.
Since the Crowd REST documentation doesn't mention this, can anybody comment if this method of creating the groupId is something that can be relied upon?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that groupid format worked for me. disappionted this is not mentioned anywhere in the REST API documentation!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dale FHey you write in your that yout get the user ID with the POST /rest/admin/1.0/users/search can you show me how, please? i'm searchin since a lot of tim for a solution to get the crowd userId but i just find the a solution to get the user key
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's a snippet of Python code that will generate the groupid
import base64
def get_id(directory_id, group_name):
return ('{}-{}'.format(
directory_id,
base64.b64encode(group_name.encode('utf8')).decode(),
))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Dale thanks for your reply. But that's not what I'm searching for. I wrote an post 2 weeks ago. https://community.atlassian.com/t5/Crowd-questions/How-to-get-the-userId-of-an-specific-user-for-the-audit-Log/qaq-p/1299406#M5303 maybe you know what i searching for and have a solution for me.
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.