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"
users "github.com/auth0/go-auth0/management/management/users"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &users.ListUserPermissionsRequestParameters{
PerPage: management.Int(
1,
),
Page: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
client.Users.Permissions.List(
context.TODO(),
"id",
request,
)
}[
{
"sources": "<unknown>",
"resource_server_identifier": "<string>",
"permission_name": "<string>",
"resource_server_name": "<string>",
"description": "<string>"
}
]Retrieve all permissions associated with the user.
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"
users "github.com/auth0/go-auth0/management/management/users"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &users.ListUserPermissionsRequestParameters{
PerPage: management.Int(
1,
),
Page: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
client.Users.Permissions.List(
context.TODO(),
"id",
request,
)
}[
{
"sources": "<unknown>",
"resource_server_identifier": "<string>",
"permission_name": "<string>",
"resource_server_name": "<string>",
"description": "<string>"
}
]Documentation Index
Fetch the complete documentation index at: https://auth0-feat-custom-rate-limit-policies.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.
ID of the user to retrieve the permissions for.
Number of results per page.
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).
Permissions successfully retrieved.
Cette page vous a-t-elle été utile ?