How to fetch the information on user, permission (group/role) , filter etc user holds
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
When transferring data from one user(user1) account to another user account, it becomes challenging to fetch information like user association, with "linked data", assigned & reported issues, owned filters & dashboards, and places where their user1 account may have been individually added (eg. project roles, permission or notification schemes, workflows, etc...)
This article would help in guiding what all resources can be used to get these details.
Solution
Here are some suggestions:
For most of the information, API calls can be used to fetch the details.
To get the /rest/api/3/permissions/check to:
for a list of global permissions, the global permissions granted to a user.
for a list of project permissions and lists of projects and issues, for each project permission a list of the projects and issues a user can access or manipulate.
Then based on the group or role you can filter the associate user.
To get the project role: /rest/api/3/project/{projectIdOrKey}/role/{id}
A project role's details and actors associated with the project. The list of actors is sorted by display name.
Likewise for filter: check the document for API call: /rest/api/3/filter/{id}
To get the results for all the filters owned by a user:
This will have to be run by the respective user for whom you wish to retrieve the list of filters.
For making changes to the filter:
To get the list of owned or shared Dashboards of a user:
Updating a Dashboard:
API documents
Please feel free to visit the documents below to explore more API calls as per your requirements
Was this helpful?