I have a requirement to expose the names of members of a group (either Atlassian group or Entra synced group) in a request. I can't find any methods that access the names of the members of the group, there doesn't seem to be a smart value that will help either.
Has anyone found a way to access and use the names of group members? Or Account IDs? Or UPN/email addresses?
One of many use cases would be:
Request is waiting for group approval, who are the members of the group that needs to approve it?
Thanks,
Eli
Hello @Eli Devlin
You would need to use the Send Web Request action to call the REST API endpoint to retrieve the group members.
The output includes the account id, display name, and email address of each group member.
Hi Trudy,
Thanks for the speedy reply, but would you mind breaking down the detail a little if you have some time?
As I understand it, I configure send web request automation component as follows:
Web Request URL: https://<domain>.atlassian.net/rest/api/3/group/member
HTTP Method: GET
Web request body: ??
Key: Authorization - <base 64 encoded email address+API with "Basic " in front of it>
But I'm not really sure what to do after that either.
Thanks in advance for any guidance you can offer!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For this specific endpoint a request body is not required. You put the parameters into the URL itself; i.e.
https://<domain>.atlassian.net/rest/api/3/group/member?groupId=<groupId>
This is shown in the API documentation link I provided.
For endpoints where you use the GET method and no request body is needed, you can test the call by pasting the URL into a browser window when you are already logged in to the specified Jira instance; i.e
https://abc.atlassian.net/rest/api/3/group/member?groupId=5e2ab598-21ab-402c-b018-c99c56930278
The response will display in the browser.
In an automation rule the response will be accessible through the smart value {{webResponse}} as described in the information in the Send Web Request action itself in the Automation rule construction screen.
You will have to add other actions to the rule to pull from that response the data you want to use.
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.