Skip to content
Documentation/canton-network-docs/Ledger APIOpenAPIView on canton-network-docs
canton-network-docs/Ledger APIOpenAPI

POST /v2/users/:user

POST
/
v2
/
users
/
{user-id}
/
rights
Try it
POST /v2/users/:user-id/rights

cURL

curl --request POST \
  --url https://api.example.com/v2/users/{user-id}/rights \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "rights": [
    {
      "kind": {
        "CanActAs": {
          "value": {
            "party": "<string>"
          }
        }
      }
    }
  ],
  "identityProviderId": "<string>"
}
'
200
400
default
{
  "newlyGrantedRights": [
    {
      "kind": {
        "CanActAs": {
          "value": {
            "party": "<string>"
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Ledger API standard JWT token

Path Parameters

user-id
string
required

Body

application/json

Add the rights to the set of rights granted to the user.

Required authorization: HasRight(ParticipantAdmin) OR IsAuthenticatedIdentityProviderAdmin(identity_provider_id)

userId
string
required

The user to whom to grant rights.

Required

rights
Right · object[]

The rights to grant.

Optional: can be empty

Show child attributes

identityProviderId
string

The id of the Identity Provider If not set, assume the user is managed by the default identity provider.

Optional

Response

200
application/json
newlyGrantedRights
Right · object[]

The rights that were newly granted by the request.

Optional: can be empty

Show child attributes