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.CreateRoleRequestContent{
Name: "name",
}
client.Roles.Create(
context.TODO(),
request,
)
}{
"id": "<string>",
"name": "<string>",
"description": "<string>"
}Create a user role for Role-Based Access Control.
Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.
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.CreateRoleRequestContent{
Name: "name",
}
client.Roles.Create(
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.
このページは役に立ちましたか?