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"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.ListRolesRequestParameters{
PerPage: management.Int(
1,
),
Page: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
NameFilter: management.String(
"name_filter",
),
}
client.Roles.List(
context.TODO(),
request,
)
}[
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
]Retrieve detailed list of user roles created in your tenant.
Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.
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"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.ListRolesRequestParameters{
PerPage: management.Int(
1,
),
Page: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
NameFilter: management.String(
"name_filter",
),
}
client.Roles.List(
context.TODO(),
request,
)
}[
{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}
]Documentation Index
Fetch the complete documentation index at: https://auth0-quickstart-flutter-windows.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.
Number of results per page. Defaults to 50.
1 <= x <= 100Page index of the results to return. First page is 0.
x >= 0Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
Optional filter on name (case-insensitive).
Cette page vous a-t-elle été utile ?