Managing User Entitlements
Administrative APIs for managing user entitlements
Common Entitlements Types
# An entitlement
type Entitlement {
# Name of the entitlement
name: String!
# Optional description of the entitlement
description: String
# Value of the entitlement. Type Float to allow for values
# values larger than possible with Int. Value is a
# positive integer.
value: Float!
}
# Sub-resource consumer of the entitlement
# For example some entitlements are per-Sudo
type EntitlementConsumer {
# ID of the consuming resource
id: ID!
# Issuer of the consuming resource ID e.g. sudoplatform.sudoservice for Sudos
issuer: String!
}
# Effective entitlements for an external user
type ExternalUserEntitlements {
# Time of initial creation of user entitlements mapping in milliseconds
# since epoch. Number is integral, float type provides sufficient
# precision.
createdAtEpochMs: Float!
# Time of last updates of user entitlements mapping in milliseconds
# since epoch. Number is integral, float type provides sufficient
# precision.
updatedAtEpochMs: Float!
# Version number of the user's entitlements. This is incremented every
# time there is a change of entitlements set or explicit entitlements
# for this user.
#
# For users entitled by entitlement set, the fractional part of this version
# specifies the version of the entitlements set itself. Entitlements set version
# is divided by 100000 then added to the user entitlements version
#
# This ensures that the version of user entitlements always increases mon
version: Float!
# External IDP identifier identifying the user
externalId: String!
# Sudo Platform owner. This value matches the subject in identity
# tokens used to authenticate to Sudo Platform services.
owner: String
# Name of the entitlements set specified for this user. Will be undefined
# if entitlements have been specified explicitly rather than by an
# entitlements set name.
entitlementsSetName: String
# Effective entitlements for the user either obtained from the entitlements
# set or as specified explicitly for this user.
entitlements: [Entitlement!]!
}
# An error result returned for an operation in a bulk applyEntitlements*ToUsers
# mutation.
type ExternalUserEntitlementsError {
# Error code of failed operation
error: String!
}
# Union of success and error results returned for operations in a bulk
# applyEntitlements*ToUsers mutation.
union ExternalUserEntitlementsResult =
ExternalUserEntitlements
| ExternalUserEntitlementsError
Apply Entitlements Set to a User
Possible Errors
Apply Entitlements Sets to Multiple Users
Possible Errors
Apply Entitlements Sequence to a User
Possible Errors
Apply Entitlements Sequences to Multiple Users
Possible Errors
Apply Entitlements to a User
Possible Errors
Apply Entitlements to Multiple Users
Possible Errors
Apply Expendable Entitlements to a User
Possible Errors
Get Entitlements for a User
Possible Errors
Last updated