How to get the permissions for every gitlab user in every project via gitlab api or any other way?

How to get the permissions for every gitlab user in every project and group via gitlab api or any other way?

We need to retrieve git lab user wise permissions:

  • Currently we can just retrieve git lab user information via gitlab api, but it doesn’t include any information about the user permissions(Guest, Reporter, Developer, Maintainer, Owner, Admin)
  • What are the different ways to extract permissions for every gitlab user in every project
  • Currently we are using self-managed free version of gitlab

*Appreciate if you could kindly provide your support !! *