Hello, everyone!
I can't find a solution for this:
In our company, we use group policies for access to all projects. To grant access to a project, a user must contact the administrator to be added to the necessary group. However, in some projects where users have the "Administer Project - Ability to administer a project in Jira" permission, some users abuse their permissions by adding other users to the project without contacting the Jira administrator.
I want to write a script using REST API that can clear all users in all projects who were added without a group. How can I do it?