Detailed User Project Access and Related Roles

Hi,

Using Jira packages, is it possible to retrieve the list of accessible projects and their corresponding roles (for every Jira Service Management agent and every user having “Jira Service Management” application access)

Thank you