package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
members "github.com/auth0/go-auth0/management/management/organizations/members"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &members.ListOrganizationMemberRolesRequestParameters{
Page: management.Int(
1,
),
PerPage: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
client.Organizations.Members.Roles.List(
context.TODO(),
"id",
"user_id",
request,
)
}[
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
]Retrieve detailed list of roles assigned to a given user within the context of a specific Organization.
Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
members "github.com/auth0/go-auth0/management/management/organizations/members"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &members.ListOrganizationMemberRolesRequestParameters{
Page: management.Int(
1,
),
PerPage: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
client.Organizations.Members.Roles.List(
context.TODO(),
"id",
"user_id",
request,
)
}[
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
]Documentation Index
Fetch the complete documentation index at: https://auth0-chore-sdk-version-update-20260521.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Organization identifier.
50ID of the user to associate roles with.
Page index of the results to return. First page is 0.
0 <= x <= 1000Number of results per page. Defaults to 50.
1 <= x <= 100Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
Cette page vous a-t-elle été utile ?