Hi Team,
We are using the REST API: [link] to collect the Audit Logs of Jira Cloud.
During data collection, we noticed that some events (e.g., "User added to group," "User removed from group," etc.) include IDs in the name field of the associatedItems
field instead of the actual names of the users on whom the actions were performed.
Is there any possible solution to retrieve the actual name in the raw event itself, instead of the ID in the name
field, while collecting the audit log through the mentioned API?
Hello @Nihar Markana _C_,
The REST API for these events will indeed return only the IDs, with the action's author being the only one returned by name.
As a workaround, consider adding the IDs to variables, if possible.
If the goal of these events, such as adding a user to a group, is to identify the user, this variable will help you perform another REST API call:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-get
Using the result from the first REST API call, you can retrieve additional user details, such as names or other relevant information.
Let me know if this approach helps or if you have any questions—feel free to reach out!
Best regards,
Hi @Luiz Ricardo Pereira da Silva , Thanks for taking this up.
We can use the mentioned API as a 2nd REST call, but the problem with that is we are not receiving the accountID in audit logs every time. for example it might contains the authorKey (i.e, ug:123ec4f5-a678-912b-34d5-6788123e4ada) which is deprecated from the Jira.
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.
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.