You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auth0 API recently added support for member roles in the organizations/get-members endpoint. This enables us to fetch all the organization members' roles all at once without risking hitting the rate limit.
Currently, go-auth0 unfortunately doesn't return roles in OrganizationMember, and therefore there is no way to take advantage of this new RBAC feature.
// ===== github.com/auth0/go-auth0@v1.1.0/management/organization.go =====// OrganizationMemberList is a list of OrganizationMembers.typeOrganizationMemberListstruct {
ListMembers []OrganizationMember`json:"members"`
}
// OrganizationMember holds member information for an Organization.typeOrganizationMemberstruct {
UserID*string`json:"user_id,omitempty"`Picture*string`json:"picture,omitempty"`Name*string`json:"name,omitempty"`Email*string`json:"email,omitempty"`
}
Describe the ideal solution
Add a new Roles []OrganizationMemberRole field to OrganizationMember
Optional: add a new boolean flag to Organization.Members() function to enable fetching of roles. Or simply ask users to use IncludeFields("roles")
Alternatives and current workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Checklist
Describe the problem you'd like to have solved
Auth0 API recently added support for member roles in the organizations/get-members endpoint. This enables us to fetch all the organization members' roles all at once without risking hitting the rate limit.
Currently, go-auth0 unfortunately doesn't return roles in
OrganizationMember
, and therefore there is no way to take advantage of this new RBAC feature.Describe the ideal solution
Roles []OrganizationMemberRole
field toOrganizationMember
Organization.Members()
function to enable fetching of roles. Or simply ask users to useIncludeFields("roles")
Alternatives and current workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: