auth0 / auth0-java

Java client library for the Auth0 platform
https://auth0.com
MIT License
290 stars 131 forks source link

Add roles to organization member call #573

Closed larsf96 closed 11 months ago

larsf96 commented 11 months ago

Checklist

Describe the problem you'd like to have solved

A few weeks ago, Auth0 has announced that the Management API can now directly return the user's roles within an organization (https://auth0.com/changelog#78X6urpiHJK6SY0fUw4zyh). Currently we have to do a lot of API calls with this library to get all users including their roles. It's not yet possible to get the roles with mgmt.organizations().getMembers() as this property is missing.

Describe the ideal solution

The roles should be implemented to the Member class

Alternatives and current workarounds

No response

Additional context

No response

jimmyjames commented 11 months ago

Good timing @larsf96! We had this in our backlog for this week ;)

I've made #574, feel free to check it out!