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"
roles "github.com/auth0/go-auth0/management/management/roles"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &roles.ListRolePermissionsRequestParameters{
PerPage: management.Int(
1,
),
Page: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
client.Roles.Permissions.List(
context.TODO(),
"id",
request,
)
}[
{
"resource_server_identifier": "<string>",
"permission_name": "<string>",
"resource_server_name": "<string>",
"description": "<string>"
}
]Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role.
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"
roles "github.com/auth0/go-auth0/management/management/roles"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &roles.ListRolePermissionsRequestParameters{
PerPage: management.Int(
1,
),
Page: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
client.Roles.Permissions.List(
context.TODO(),
"id",
request,
)
}[
{
"resource_server_identifier": "<string>",
"permission_name": "<string>",
"resource_server_name": "<string>",
"description": "<string>"
}
]Documentation Index
Fetch the complete documentation index at: https://auth0-feat-testing-docs.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 role to list granted permissions.
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).
Role permissions successfully retrieved.
このページは役に立ちましたか?