Overview
Version information
Version : 1.0.0
URI scheme
Host : cloudentity.dev.cloudentity.com
BasePath : /api
Schemes : HTTPS
Consumes
-
application/json
Produces
-
application/json
Paths
GET /customer
Description
To be called by a customer using an apiKey. Gets the record for the calling customer.
The CUSTOMER_GET_ITSELF entitlement is required, but is granted to customers by default and is unrevokable.
This API uses the same request authorization headers as POST /apiKey/entitlement/validate
(Validate Entitlements using API Key).
See documentation for that API for details about authorization header inputs.
Parameters
Type | Name | Schema |
---|---|---|
Header |
x-orchis-authorization |
string |
Header |
x-orchis-date |
string |
Header |
x-orchis-request |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer record retrieved. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /customer/{customerIdentifier}
Description
Get a customer record from the datastore.
This API accepts one of the following authentication mechanisms:
- session token
header,
- HMAC headers with valid API key
- valid JWT header in bearer format
When session or HMAC authentication is used then the ADMIN_GET_CUSTOMER entitlement is required.
For HMAC see the API Key Validation API documentation for more details about HMAC headers.
The principal entity (user or application calling this API) may only retrieve the requested customer if any of the following conditions are met:
- The principal entity has the "ADMIN_ALL_CUSTOMERS" entitlement
- The requested customer exists in the customers
attribute of the principal entity
- The system configuration restrictCustomerAccess
is false
Otherwise, a Customer.NotFound
error will be returned, even if the customer exists in the system.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer record retrieved. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
423 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
PUT /customer/{customerIdentifier}
Description
Update a customer record in the datastore.
The ADMIN_UPDATE_CUSTOMER entitlement is required.
Cannot remove; cid, customerAlias, customerName, eulaRevision
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
If the customer EULA revision is changed - Loop through each user associated to this customer – Set user’s EULA acceptance to false – Set user’s EULA revision to the customer EULA revision
The principal entity (user or application calling this API) may only update
the requested customer if any of the following conditions are met:
- The principal entity has the "ADMIN_ALL_CUSTOMERS" entitlement
- The requested customer exists in the customers
attribute of the principal entity
- The system configuration restrictCustomerAccess
is false
Otherwise, a Customer.NotFound
error will be returned, even if the customer
exists in the system.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Body |
body |
Update Customer Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The customer record was updated. The customer object is returned. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
409 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /customer/{customerIdentifier}
Description
Removes the customer record.
Any users associated with this customer will be deleted; any of their active sessions will also be invalidated.
The ADMIN_DELETE_CUSTOMER entitlement is required.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer and all their users deleted from datastore. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /customer/{customerIdentifier}/activate
Description
Activate a customer allowing users to access the system.
The ADMIN_ACTIVATE_CUSTOMER entitlement is required.
Automatically sets the activationDate attribute to today’s date and time.
The following customer attributes are set automatically - status = active - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer and all their users are granted access to the system. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /customer/{customerIdentifier}/activate
Description
Deactivate a customer disallowing users to access the system.
The ADMIN_DEACTIVATE_CUSTOMER entitlement is required.
The following customer attributes are set automatically - status = inactive - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer and all their users are revoked accessing from the system. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /customer/{customerIdentifier}/entitlement/{entitlementName}
Description
Grant an entitlement identified by entitlementName
to a customer identified by customerIdentifier
.
The ADMIN_GRANT_ENTITLEMENT_TO_CUSTOMER entitlement is required.
The ADMIN_GRANT_ANY_ENTITLEMENT entitlement is required to grant entitlements unowned by the current user. If the current user owns neither the target entitlement nor the ADMIN_GRANT_ANY_ENTITLEMENT entitlement, an Authorization.Unauthorized
error will be returned.
Core entitlements may not be granted to customers. If the entitlement to be granted is a core entitlement, an Entitlement.CoreNotAllowed
error will be returned.
The entitlement will be recursively granted to all customer admins, based on the identifiers
in this customer’s adminEmails
list.
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Path |
entitlementName |
Unique name of the entitlement. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer entitlement has been granted. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
|
422 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /customer/{customerIdentifier}/entitlement/{entitlementName}
Description
Revoke an entitlement identified by entitlementName
from a customer identified by customerIdentifier
.
The ADMIN_REVOKE_ENTITLEMENT_FROM_CUSTOMER entitlement is required.
The ADMIN_REVOKE_ANY_ENTITLEMENT entitlement is required to revoke entitlements unowned by the current user. If the current user owns neither the target entitlement nor the ADMIN_REVOKE_ANY_ENTITLEMENT entitlement, an Authorization.Unauthorized
error will be returned.
Core entitlements may not be revoked from customers. If the entitlement to be revoked is a core entitlement, an Entitlement.CoreNotAllowed
error will be returned.
IMPORTANT: The entitlement will be recursively revoked from all users associated with this customer.
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Path |
entitlementName |
Unique name of the entitlement. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer entitlement has been revoked. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
|
422 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /customer/{customerIdentifier}/entitlementgroups
Description
Grant an entitlement group identified by entitlementName
to a customer identified by customerIdentifier
.
The ADMIN_GRANT_ENTITLEMENT_GROUP_TO_CUSTOMER entitlement is required.
In order to grant an entitlement group, at least one of the following conditions must be met: * The current user must own the target group * The current user must own each entitlement in the target group, through some combination of individual entitlements or other groups * The current user must own the ADMIN_GRANT_ANY_ENTITLEMENT_GROUP entitlement
If none of these conditions is met, an Authorization.Unauthorized
error will be returned.
Core entitlements may not be granted to customers; therefore, groups which could contain core entitlements
also cannot be granted to customers. If the allowCoreEntitlements
attribute of the group is true
, an
Entitlement.CoreNotAllowed
error will be returned.
The entitlement group will be recursively granted to all customer admins, based on the identifiers
in this customer’s adminEmails
list.
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Body |
group |
Name of group |
group
Name | Schema |
---|---|
group |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
The entitlement group has been granted to the customer |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
|
422 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /customer/{customerIdentifier}/entitlementgroups
Description
Get the list of entitlement groups assigned to the customer identified by customerIdentifier
.
The ADMIN_GET_CUSTOMER_ENTITLEMENT_GROUPS entitlement is required.
Also returns the list of effective entitlement groups (completeGroups
) available to the customer. Effective
entitlement groups are any group defined in the system that meets one of the following requirements:
* The customer owns the group and the group exists in the system, or
* The customer owns each entitlement in the group, through some combination of individual entitlements or other groups,
and the group and all member entitlements are defined in the system.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The requested customer list of entitlement groups is returned |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /customer/{customerIdentifier}/entitlementgroups/{entitlementGroup}
Description
Revoke an entitlement group from a customer identified by {customerIdentifier}
The ADMIN_REVOKE_ENTITLEMENT_GROUP_FROM_CUSTOMER entitlement is required.
In order to revoke an entitlement group, at least one of the following conditions must be met: * The current user must own the target group * The current user must own each entitlement in the target group, through some combination of individual entitlements or other groups * The current user must own the ADMIN_REVOKE_ANY_ENTITLEMENT_GROUP entitlement
If none of these conditions is met, an Authorization.Unauthorized
error will be returned.
IMPORTANT: The entitlement group will be recursively revoked from every user belonging to this customer.
Note that this API only revokes an entitlement group. Any constituent entitlements still owned by the target customer (standalone or as part of other groups) will not be revoked automatically.
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Path |
entitlementGroup |
Name of entitlement group |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
The entitlement group has been revoked from the customer |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /customer/{customerIdentifier}/entitlements
Description
Get the list of entitlements assigned to the customer identified by customerIdentifier
.
The ADMIN_GET_CUSTOMER_ENTITLEMENTS entitlement is required.
Also returns the list of effective entitlements (completeEntitlements
) available to the customer. Effective
entitlements are any entitlement defined in the system that meets one of the following requirements:
* The customer owns the entitlement and the entitlement exists in the system, or
* The customer owns a group containing the entitlement, and both the entitlement and the group exist in the system.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The requested customer list of entitlements is returned |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /customers
Description
Create a new customer in the user store.
The ADMIN_CREATE_CUSTOMER entitlement is required.
Required parameters: cid, customerAlias, customerName, eulaRevision
Note that the customer will be created without an API key. A call to "Reset Customer API Key" is necessary to generate the first API key for a new customer.
The following customer attributes are set automatically - status = inactive if not specified as body param - recordCreated = timestamp - recordCreator = admin uuid - recordUpdated = timestamp - recordUpdater = admin uuid - eulaAutomaticApproval, if not provided = false
Optional allowPublicRegistration attribute determines whether public registration should be allowed or not.
Upon successful creation of a customer, the CID of the newly created customer
will be added to the customers
list of the calling admin.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Create Customer Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
The customer was created. The created customer object is returned. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
|
409 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /customers
Description
Return a list of all customers matching the search criteria.
The ADMIN_LIST_CUSTOMERS entitlement is required.
This API accepts either a valid session token
header, or the three HMAC headers with valid API key, as
authentication. See the API Key Validation API documentation for more details about HMAC headers.
If the principal entity (user or application calling this API) has the "ADMIN_ALL_CUSTOMERS" entitlement, or the system configuration restrictCustomerAccess
is false, all customers will be available and the filter
request parameter will be accepted and used. Otherwise, only the customers available in the customers
attribute of the principal entity will be returned, and the filter
request parameter will be ignored.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
token |
SSO token of the current user |
string |
Header |
x-orchis-authorization |
string |
|
Header |
x-orchis-date |
string |
|
Header |
x-orchis-request |
string |
|
Query |
filter |
Filter the results by the given field’s value. The format of the filter field is defined as follows:
For example: Asterisks are supported for substring searches. |
string |
Query |
limit |
Limits the number of returned items (value |
integer |
Query |
offset |
When an offset |
integer |
Query |
sort |
Sort the results by the given field. If an ascending sort is required, specify the attribute name (e.g. If a descending sort is required, specify the attribute name with a If a multiple column sort is required, add a comma separator between the attribute names (e.g. Example: lastName,firstName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The results for a customer search matching the search criteria. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
422 |
Response details:
|
|
423 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/customer
Description
To be called by a customer using an apiKey. Gets the record for the calling customer.
The CUSTOMER_GET_ITSELF entitlement is required, but is granted to customers by default and is unrevokable.
This API uses the same request authorization headers as POST /apiKey/entitlement/validate
(Validate Entitlements using API Key).
See documentation for that API for details about authorization header inputs.
Parameters
Type | Name | Schema |
---|---|---|
Header |
x-orchis-authorization |
string |
Header |
x-orchis-date |
string |
Header |
x-orchis-request |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer record retrieved. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/customer/{customerIdentifier}
Description
Get a customer record from the datastore.
This API accepts one of the following authentication mechanisms:
- session token
header,
- HMAC headers with valid API key
- valid JWT header in bearer format
When session or HMAC authentication is used then the ADMIN_GET_CUSTOMER entitlement is required.
For HMAC see the API Key Validation API documentation for more details about HMAC headers.
The principal entity (user or application calling this API) may only retrieve the requested customer if any of the following conditions are met:
- The principal entity has the "ADMIN_ALL_CUSTOMERS" entitlement
- The requested customer exists in the customers
attribute of the principal entity
- The system configuration restrictCustomerAccess
is false
Otherwise, a Customer.NotFound
error will be returned, even if the customer exists in the system.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer record retrieved. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
423 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
PUT /sla/customer/{customerIdentifier}
Description
Update a customer record in the datastore.
The ADMIN_UPDATE_CUSTOMER entitlement is required.
Cannot remove; cid, customerAlias, customerName, eulaRevision
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
If the customer EULA revision is changed - Loop through each user associated to this customer – Set user’s EULA acceptance to false – Set user’s EULA revision to the customer EULA revision
The principal entity (user or application calling this API) may only update
the requested customer if any of the following conditions are met:
- The principal entity has the "ADMIN_ALL_CUSTOMERS" entitlement
- The requested customer exists in the customers
attribute of the principal entity
- The system configuration restrictCustomerAccess
is false
Otherwise, a Customer.NotFound
error will be returned, even if the customer
exists in the system.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Body |
body |
Update Customer Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The customer record was updated. The customer object is returned. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
409 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /sla/customer/{customerIdentifier}
Description
Removes the customer record.
Any users associated with this customer will be deleted; any of their active sessions will also be invalidated.
The ADMIN_DELETE_CUSTOMER entitlement is required.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer and all their users deleted from datastore. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/customer/{customerIdentifier}/activate
Description
Activate a customer allowing users to access the system.
The ADMIN_ACTIVATE_CUSTOMER entitlement is required.
Automatically sets the activationDate attribute to today’s date and time.
The following customer attributes are set automatically - status = active - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer and all their users are granted access to the system. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /sla/customer/{customerIdentifier}/activate
Description
Deactivate a customer disallowing users to access the system.
The ADMIN_DEACTIVATE_CUSTOMER entitlement is required.
The following customer attributes are set automatically - status = inactive - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer and all their users are revoked accessing from the system. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/customer/{customerIdentifier}/entitlement/{entitlementName}
Description
Grant an entitlement identified by entitlementName
to a customer identified by customerIdentifier
.
The ADMIN_GRANT_ENTITLEMENT_TO_CUSTOMER entitlement is required.
The ADMIN_GRANT_ANY_ENTITLEMENT entitlement is required to grant entitlements unowned by the current user. If the current user owns neither the target entitlement nor the ADMIN_GRANT_ANY_ENTITLEMENT entitlement, an Authorization.Unauthorized
error will be returned.
Core entitlements may not be granted to customers. If the entitlement to be granted is a core entitlement, an Entitlement.CoreNotAllowed
error will be returned.
The entitlement will be recursively granted to all customer admins, based on the identifiers
in this customer’s adminEmails
list.
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Path |
entitlementName |
Unique name of the entitlement. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer entitlement has been granted. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
|
422 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /sla/customer/{customerIdentifier}/entitlement/{entitlementName}
Description
Revoke an entitlement identified by entitlementName
from a customer identified by customerIdentifier
.
The ADMIN_REVOKE_ENTITLEMENT_FROM_CUSTOMER entitlement is required.
The ADMIN_REVOKE_ANY_ENTITLEMENT entitlement is required to revoke entitlements unowned by the current user. If the current user owns neither the target entitlement nor the ADMIN_REVOKE_ANY_ENTITLEMENT entitlement, an Authorization.Unauthorized
error will be returned.
Core entitlements may not be revoked from customers. If the entitlement to be revoked is a core entitlement, an Entitlement.CoreNotAllowed
error will be returned.
IMPORTANT: The entitlement will be recursively revoked from all users associated with this customer.
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Path |
entitlementName |
Unique name of the entitlement. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer entitlement has been revoked. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
|
422 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/customer/{customerIdentifier}/entitlementgroups
Description
Grant an entitlement group identified by entitlementName
to a customer identified by customerIdentifier
.
The ADMIN_GRANT_ENTITLEMENT_GROUP_TO_CUSTOMER entitlement is required.
In order to grant an entitlement group, at least one of the following conditions must be met: * The current user must own the target group * The current user must own each entitlement in the target group, through some combination of individual entitlements or other groups * The current user must own the ADMIN_GRANT_ANY_ENTITLEMENT_GROUP entitlement
If none of these conditions is met, an Authorization.Unauthorized
error will be returned.
Core entitlements may not be granted to customers; therefore, groups which could contain core entitlements
also cannot be granted to customers. If the allowCoreEntitlements
attribute of the group is true
, an
Entitlement.CoreNotAllowed
error will be returned.
The entitlement group will be recursively granted to all customer admins, based on the identifiers
in this customer’s adminEmails
list.
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Body |
group |
Name of group |
group
Name | Schema |
---|---|
group |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
The entitlement group has been granted to the customer |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
|
422 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/customer/{customerIdentifier}/entitlementgroups
Description
Get the list of entitlement groups assigned to the customer identified by customerIdentifier
.
The ADMIN_GET_CUSTOMER_ENTITLEMENT_GROUPS entitlement is required.
Also returns the list of effective entitlement groups (completeGroups
) available to the customer. Effective
entitlement groups are any group defined in the system that meets one of the following requirements:
* The customer owns the group and the group exists in the system, or
* The customer owns each entitlement in the group, through some combination of individual entitlements or other groups,
and the group and all member entitlements are defined in the system.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The requested customer list of entitlement groups is returned |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /sla/customer/{customerIdentifier}/entitlementgroups/{entitlementGroup}
Description
Revoke an entitlement group from a customer identified by {customerIdentifier}
The ADMIN_REVOKE_ENTITLEMENT_GROUP_FROM_CUSTOMER entitlement is required.
In order to revoke an entitlement group, at least one of the following conditions must be met: * The current user must own the target group * The current user must own each entitlement in the target group, through some combination of individual entitlements or other groups * The current user must own the ADMIN_REVOKE_ANY_ENTITLEMENT_GROUP entitlement
If none of these conditions is met, an Authorization.Unauthorized
error will be returned.
IMPORTANT: The entitlement group will be recursively revoked from every user belonging to this customer.
Note that this API only revokes an entitlement group. Any constituent entitlements still owned by the target customer (standalone or as part of other groups) will not be revoked automatically.
The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Path |
entitlementGroup |
Name of entitlement group |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
The entitlement group has been revoked from the customer |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/customer/{customerIdentifier}/entitlements
Description
Get the list of entitlements assigned to the customer identified by customerIdentifier
.
The ADMIN_GET_CUSTOMER_ENTITLEMENTS entitlement is required.
Also returns the list of effective entitlements (completeEntitlements
) available to the customer. Effective
entitlements are any entitlement defined in the system that meets one of the following requirements:
* The customer owns the entitlement and the entitlement exists in the system, or
* The customer owns a group containing the entitlement, and both the entitlement and the group exist in the system.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerIdentifier |
Unique identifier of the customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The requested customer list of entitlements is returned |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/customers
Description
Create a new customer in the user store.
The ADMIN_CREATE_CUSTOMER entitlement is required.
Required parameters: cid, customerAlias, customerName, eulaRevision
Note that the customer will be created without an API key. A call to "Reset Customer API Key" is necessary to generate the first API key for a new customer.
The following customer attributes are set automatically - status = inactive if not specified as body param - recordCreated = timestamp - recordCreator = admin uuid - recordUpdated = timestamp - recordUpdater = admin uuid - eulaAutomaticApproval, if not provided = false
Optional allowPublicRegistration attribute determines whether public registration should be allowed or not.
Upon successful creation of a customer, the CID of the newly created customer
will be added to the customers
list of the calling admin.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Create Customer Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
The customer was created. The created customer object is returned. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
|
409 |
Response details:
|
|
422 |
Validation error; some of the provided attributes did not pass the validation rules. Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/customers
Description
Return a list of all customers matching the search criteria.
The ADMIN_LIST_CUSTOMERS entitlement is required.
This API accepts either a valid session token
header, or the three HMAC headers with valid API key, as
authentication. See the API Key Validation API documentation for more details about HMAC headers.
If the principal entity (user or application calling this API) has the "ADMIN_ALL_CUSTOMERS" entitlement, or the system configuration restrictCustomerAccess
is false, all customers will be available and the filter
request parameter will be accepted and used. Otherwise, only the customers available in the customers
attribute of the principal entity will be returned, and the filter
request parameter will be ignored.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
token |
SSO token of the current user |
string |
Header |
x-orchis-authorization |
string |
|
Header |
x-orchis-date |
string |
|
Header |
x-orchis-request |
string |
|
Query |
filter |
Filter the results by the given field’s value. The format of the filter field is defined as follows:
For example: Asterisks are supported for substring searches. |
string |
Query |
limit |
Limits the number of returned items (value |
integer |
Query |
offset |
When an offset |
integer |
Query |
sort |
Sort the results by the given field. If an ascending sort is required, specify the attribute name (e.g. If a descending sort is required, specify the attribute name with a If a multiple column sort is required, add a comma separator between the attribute names (e.g. Example: lastName,firstName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The results for a customer search matching the search criteria. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
422 |
Response details:
|
|
423 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/eula/customer/accept
Description
Accepts organization EULA.
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Organization Eula has been acceptected. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/eula/customer/status
Description
Gets information about EULA.
If updateRequired
is set to true then Customer Admin should be prompted to confirm new EULA
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Organization Eula status |
|
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
PUT /sla/eula/customers/revision
Description
Bulk operation to update revision for multiple organizations.
Before any update is made API verifies if all provided organizations exist.
Currently supported organization identifiers:
* 34324-213123-21343243
will search by UUID * cid::RANDOM_COMPANY
will search by the provided organization identifier.
You are recommended to use UUID whenever possible.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Update EULA revision for organizations Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Organizations Eula has been updated. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /sla/eula/customers/revision
Description
Bulk operation to unset revision for multiple organizations.
Before any update is made API verifies if all provided organizations exist.
Currently supported organization identifiers:
* 34324-213123-21343243
will search by UUID * cid::RANDOM_COMPANY
will search by the provided organization identifier.
You are recommended to use UUID whenever possible.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Unset EULA revision for organizations Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Organizations Eula has been updated. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
PUT /sla/eula/global/revision
Description
Update global EULA revision. The following additional attributes are set automatically - recordUpdated = timestamp - recordUpdater = jwt issuer
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Update Global Eula Revision Object |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Global Eula Revision has been updated. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /sla/eula/global/revision
Description
Unset global EULA revision. The following additional attributes are set automatically - recordUpdated = timestamp - recordUpdater = jwt issuer
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Global Eula Revision has been updated. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/user/customer
Description
Get the record of the customer to which the user currently belongs.
This service requires the SELF_GET_CUSTOMER entitlement.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer record retrieved. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
423 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
PUT /sla/user/customer/apiKey
Description
Reset the API key of the customer identified in the current user session.
A unique API key is generated and stored in the apiKey attribute.
The ADMIN_RESET_CUSTOMER_API_KEY entitlement is required.
The following customer attributes are set automatically - apiKey = automatically generated API key - recordUpdated = timestamp - recordUpdater = admin uuid
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer API key has been reset. Customer API key is returned. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /sla/user/customer/apiKey
Description
Remove the API key of the customer identified in the current user session.
The ADMIN_REMOVE_CUSTOMER_API_KEY entitlement is required.
The following customer attributes are set automatically - apiKey removed - recordUpdated = timestamp - recordUpdater = admin uuid
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer API key has been revoked. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/user/customers
Description
Return a list of customers that are associated with the current user (user.customers).
The SELF_LIST_USER_CUSTOMERS entitlement is required.
Process Outline - If user does have the SELF_LIST_USER_CUSTOMERS - Return Authorization.Unauthorized - Get the user record.customers attribute list - Get the customer records for each customer in the list - Return the customer list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
limit |
Limits the number of returned items (value |
integer |
Query |
offset |
When an offset |
integer |
Query |
sort |
Sort the results by the given field. If an ascending sort is required, specify the attribute name (e.g. If a descending sort is required, specify the attribute name with a If a multiple column sort is required, add a comma separator between the attribute names (e.g. Example: lastName,firstName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The results for a customer search matching the search criteria. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /sla/users/{identifier}/customers
Description
Add customer to a user`s customer list (record.customers).
The ADMIN_ADD_TO_USER_CUSTOMERS entitlement is required.
Process Outline - If user does not have the ADMIN_ADD_TO_USER_CUSTOMERS - Return Authorization.Unauthorized - Add provided customer to the user record.customers attribute list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
identifier |
Unique identifier of a user. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute
with a trailing Examples:
* You are recommended to use UUID whenever possible. |
string |
Body |
body |
Unique identifier of a customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
User was updated, user object returned in response. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /sla/users/{identifier}/customers
Description
Return a list of customers that are associated with the specified user (user.customers).
The ADMIN_LIST_USER_CUSTOMERS entitlement is required.
Process Outline - If user does have the ADMIN_LIST_USER_CUSTOMERS - Return Authorization.Unauthorized - Get the user record.customers attribute list - Get the customer records for each customer in the list - Return the customer list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
identifier |
Unique identifier of a user. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute
with a trailing Examples:
* You are recommended to use UUID whenever possible. |
string |
Query |
limit |
Limits the number of returned items (value |
integer |
Query |
offset |
When an offset |
integer |
Query |
sort |
Sort the results by the given field. If an ascending sort is required, specify the attribute name (e.g. If a descending sort is required, specify the attribute name with a If a multiple column sort is required, add a comma separator between the attribute names (e.g. Example: lastName,firstName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The results for a customer search matching the search criteria. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
PUT /sla/users/{identifier}/customers
Description
Update a user`s customer list (record.customers).
The ADMIN_UPDATE_USER_CUSTOMERS entitlement is required.
Process Outline - If user does not have the ADMIN_UPDATE_USER_CUSTOMERS - Return Authorization.Unauthorized - Replace the user record.customers attribute list with the one provided
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
identifier |
Unique identifier of a user. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute
with a trailing Examples:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
User was updated, user object returned in response. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /sla/users/{identifier}/customers/{customerCid}
Description
Remove customer from a user`s customer list (record.customers).
The ADMIN_REMOVE_FROM_USER_CUSTOMERS entitlement is required.
Process Outline - If user does not have the ADMIN_REMOVE_FROM_USER_CUSTOMERS - Return Authorization.Unauthorized - Remove provided customer from the user record.customers attribute list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerCid |
Unique identifier of a customer. Only customer IDs, prefixed by Currently supported:
* |
string |
Path |
identifier |
Unique identifier of a user. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute
with a trailing Examples:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
User was updated, user object returned in response. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /user/customer
Description
Get the record of the customer to which the user currently belongs.
This service requires the SELF_GET_CUSTOMER entitlement.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer record retrieved. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
423 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
PUT /user/customer/apiKey
Description
Reset the API key of the customer identified in the current user session.
A unique API key is generated and stored in the apiKey attribute.
The ADMIN_RESET_CUSTOMER_API_KEY entitlement is required.
The following customer attributes are set automatically - apiKey = automatically generated API key - recordUpdated = timestamp - recordUpdater = admin uuid
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Customer API key has been reset. Customer API key is returned. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /user/customer/apiKey
Description
Remove the API key of the customer identified in the current user session.
The ADMIN_REMOVE_CUSTOMER_API_KEY entitlement is required.
The following customer attributes are set automatically - apiKey removed - recordUpdated = timestamp - recordUpdater = admin uuid
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Customer API key has been revoked. |
No Content |
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
No Content |
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /user/customers
Description
Return a list of customers that are associated with the current user (user.customers).
The SELF_LIST_USER_CUSTOMERS entitlement is required.
Process Outline - If user does have the SELF_LIST_USER_CUSTOMERS - Return Authorization.Unauthorized - Get the user record.customers attribute list - Get the customer records for each customer in the list - Return the customer list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
limit |
Limits the number of returned items (value |
integer |
Query |
offset |
When an offset |
integer |
Query |
sort |
Sort the results by the given field. If an ascending sort is required, specify the attribute name (e.g. If a descending sort is required, specify the attribute name with a If a multiple column sort is required, add a comma separator between the attribute names (e.g. Example: lastName,firstName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The results for a customer search matching the search criteria. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
POST /users/{identifier}/customers
Description
Add customer to a user`s customer list (record.customers).
The ADMIN_ADD_TO_USER_CUSTOMERS entitlement is required.
Process Outline - If user does not have the ADMIN_ADD_TO_USER_CUSTOMERS - Return Authorization.Unauthorized - Add provided customer to the user record.customers attribute list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
identifier |
Unique identifier of a user. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute
with a trailing Examples:
* You are recommended to use UUID whenever possible. |
string |
Body |
body |
Unique identifier of a customer. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing Currently supported:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
User was updated, user object returned in response. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
GET /users/{identifier}/customers
Description
Return a list of customers that are associated with the specified user (user.customers).
The ADMIN_LIST_USER_CUSTOMERS entitlement is required.
Process Outline - If user does have the ADMIN_LIST_USER_CUSTOMERS - Return Authorization.Unauthorized - Get the user record.customers attribute list - Get the customer records for each customer in the list - Return the customer list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
identifier |
Unique identifier of a user. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute
with a trailing Examples:
* You are recommended to use UUID whenever possible. |
string |
Query |
limit |
Limits the number of returned items (value |
integer |
Query |
offset |
When an offset |
integer |
Query |
sort |
Sort the results by the given field. If an ascending sort is required, specify the attribute name (e.g. If a descending sort is required, specify the attribute name with a If a multiple column sort is required, add a comma separator between the attribute names (e.g. Example: lastName,firstName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The results for a customer search matching the search criteria. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
PUT /users/{identifier}/customers
Description
Update a user`s customer list (record.customers).
The ADMIN_UPDATE_USER_CUSTOMERS entitlement is required.
Process Outline - If user does not have the ADMIN_UPDATE_USER_CUSTOMERS - Return Authorization.Unauthorized - Replace the user record.customers attribute list with the one provided
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
identifier |
Unique identifier of a user. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute
with a trailing Examples:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
User was updated, user object returned in response. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
DELETE /users/{identifier}/customers/{customerCid}
Description
Remove customer from a user`s customer list (record.customers).
The ADMIN_REMOVE_FROM_USER_CUSTOMERS entitlement is required.
Process Outline - If user does not have the ADMIN_REMOVE_FROM_USER_CUSTOMERS - Return Authorization.Unauthorized - Remove provided customer from the user record.customers attribute list
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
customerCid |
Unique identifier of a customer. Only customer IDs, prefixed by Currently supported:
* |
string |
Path |
identifier |
Unique identifier of a user. UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute
with a trailing Examples:
* You are recommended to use UUID whenever possible. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
User was updated, user object returned in response. |
|
400 |
Response details:
|
|
401 |
Response details:
|
|
403 |
Response details:
|
|
404 |
Response details:
|
Tags
-
customer
Security
Type | Name |
---|---|
oauth2 |
|
oauth2 |
|
oauth2 |
|
apiKey |
Definitions
AliveStatus
Name | Description | Schema |
---|---|---|
message |
Description of service status if available |
string |
CreateCustomerRequest
Name | Description | Schema |
---|---|---|
adminEmails |
Administrator Emails |
< string > array |
allowPublicRegistration |
Allow public registration for organisation |
string |
cid |
Customer ID |
string |
customerAlias |
Alias of Customer |
string |
customerDomains |
Customer Domains |
< string > array |
customerName |
Name of Customer |
string |
eulaAutomaticApproval |
EULA (End User License Agreement) automatic approval. When user is created, their eulaApproval is set to true |
string |
eulaRevision |
EULA (End User License Agreement) Revision |
string |
metadata |
Customer metadata |
object |
mfaMethod |
Multi-Factor Authentication method. If not set, no multi-factor authentication is used. |
enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN) |
status |
Customer activation status |
string |
CustomerIdentifierResponse
Name | Description | Schema |
---|---|---|
cid |
Customer ID |
string |
CustomerResetApiResponse
Name | Description | Schema |
---|---|---|
customerApiKey |
Customer API Key |
string |
CustomerSearchResults
Customer list
Name | Schema |
---|---|
data |
< data > array |
paging |
data
Name | Description | Schema |
---|---|---|
cid |
Customer ID |
string |
customerAlias |
Alias of Customer |
string |
customerName |
Name of Customer |
string |
eulaRevision |
EULA (End User License Agreement) Revision |
string |
mfaMethod |
Multi-Factor Authentication method. If not set, no multi-factor authentication is used. |
enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN) |
status |
Customer activation status |
string |
uuid |
Globally unique identifier |
string |
paging
Name | Schema |
---|---|
limit |
integer |
offset |
integer |
total |
integer |
DuplicateCustomerError
Name | Description | Schema |
---|---|---|
code |
Unique internal error code |
string |
details |
||
message |
Description of the error code |
string |
details
Name | Description | Schema |
---|---|---|
duplicateIdentifiers |
A list of the identifiers which were duplicates for the request. |
< string > array |
Error
Name | Description | Schema |
---|---|---|
code |
Unique internal error code |
string |
details |
Optional. Varies depending on the specific use case - details are determined by the particular API call. |
object |
message |
Description of the error code |
string |
FilteredEntitlementNames
List of entitlement names
Name | Description | Schema |
---|---|---|
completeEntitlements |
List of effective entitlements with groups unwrapped |
< string > array |
entitlements |
List of entitlements without groups |
< string > array |
GroupsWithCompleteGroupsNamesList
List of group names
Name | Description | Schema |
---|---|---|
completeGroups |
List of effective entitlement groups available to the customer |
< string > array |
groups |
List of entitlement groups owned by the customer |
< string > array |
OrganizationEulaStatus
Name | Description | Schema |
---|---|---|
approvedRevision |
Approved EULA Revision |
string |
eulaRequired |
Boolean flag to determine if eula is required |
boolean |
requiredRevision |
Required EULA Revision |
string |
RetrievedCustomerObject
Name | Description | Schema |
---|---|---|
activationDate |
Date customer was activated |
string |
adminEmails |
Administrator Emails |
< string > array |
allowPublicRegistration |
Allow public registration for organisation |
string |
cid |
Customer ID |
string |
customerAlias |
Alias of Customer |
string |
customerDomains |
Customer Domains |
< string > array |
customerName |
Name of Customer |
string |
entitlements |
Customer Entitlements |
< string > array |
eulaAutomaticApproval |
EULA (End User License Agreement) automatic approval. When user is created, their eulaApproval is set to true |
string |
eulaOrgApprovedBy |
Organization EULA approved by |
string |
eulaOrgApprovedDate |
Organization EULA approved date |
string |
eulaOrgApprovedRevision |
Organization EULA approved revision |
string |
eulaOrgRequiredRevision |
Organization EULA required revision |
string |
eulaRevision |
EULA (End User License Agreement) Revision |
string |
metadata |
Customer metadata |
object |
mfaMethod |
Multi-Factor Authentication method. If not set, no multi-factor authentication is used. |
enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN) |
recordCreated |
Timestamp when record was created |
string |
recordCreator |
Name of person that created the record |
string |
recordUpdated |
Timestamp when record was last updated |
string |
recordUpdater |
Name of person that last updated the record |
string |
status |
Customer activation status |
string |
uuid |
Globally unique identifier |
string |
RetrievedUserCustomerObject
Name | Description | Schema |
---|---|---|
cid |
Customer ID |
string |
customerAlias |
Alias of Customer |
string |
customerName |
Name of Customer |
string |
UnsetEulaRevisionForOrganizationsBody
Name | Schema |
---|---|
organizations |
< string > array |
UpdateCustomerRequest
Name | Description | Schema |
---|---|---|
adminEmails |
Administrator Emails |
< string > array |
allowPublicRegistration |
Allow public registration for organisation |
string |
customerAlias |
Alias of Customer |
string |
customerDomains |
Customer Domains |
< string > array |
customerName |
Name of Customer |
string |
eulaAutomaticApproval |
EULA (End User License Agreement) automatic approval. When user is created, their eulaApproval is set to true |
string |
eulaRevision |
EULA (End User License Agreement) Revision |
string |
metadata |
Customer metadata |
object |
mfaMethod |
Multi-Factor Authentication method. If not set, no multi-factor authentication is used. |
enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN) |
UpdateEulaRevisionForOrganizationsBody
Name | Description | Schema |
---|---|---|
organizations |
< string > array |
|
revision |
EULA Revision |
string |
UpdateGlobalEulaRevisionBody
Name | Description | Schema |
---|---|---|
revision |
EULA (End User License Agreement) Revision |
string |
User
Name | Description | Schema |
---|---|---|
address |
Street Address |
string |
city |
City |
string |
country |
Country |
string |
customer |
Customer CID |
string |
customers |
List of Customer CIDs a user could switch to |
< string > array |
defaultEmail |
Default email address |
string |
defaultMobile |
Default mobile phone number |
string |
dob |
Date Of Birth |
string |
entitlementGroups |
User entitlement groups |
< string > array |
entitlements |
User entitlements |
< string > array |
eulaApproval |
EULA (End User License Agreement) acceptance status |
string |
eulaRevision |
EULA (End User License Agreement) Revision |
string |
firstName |
First name |
string |
forcePwdReset |
Force Password Reset |
boolean |
gender |
Gender |
string |
googleAuthSecretAccepted |
Whether the Google Authenticator secret has been seen and accepted |
string |
identifierEmails |
Identifier emails |
< string > array |
identifierMobiles |
Identifier Mobile Numbers |
< string > array |
kbaQuestionSet |
KBA questions for which responses have been given |
< string > array |
lastName |
Last name |
string |
locale |
Locale (e.g. en_GB) |
string |
locality |
County or Region |
string |
mfaMethod |
Multi-Factor Authentication method. If not set, no multi-factor authentication is used. |
enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN) |
newUserStatus |
New user status |
boolean |
organization |
Organization unit |
string |
otpMethod |
User’s preferred means of receiving an OTP ('E' = email, 'M' = mobile, 'V' = voice) |
enum (E, M, V) |
otpMfaDestination |
User’s destination for authentication by OTP |
string |
otpSetupComplete |
Whether a user has completed OTP MFA setup |
boolean |
postalCode |
Postal Code |
string |
status |
User activation status |
enum (active, inactive, banned, unverified) |
uid |
Unique identifier for this user |
string |
unverifiedEmails |
Unverified emails |
< string > array |
unverifiedMobiles |
Unverified Mobile Numbers |
< string > array |
uuid |
Globally unique identifier |
string |
verifiedEmails |
Verified emails |
< string > array |
verifiedMobiles |
Verified Mobile Numbers |
< string > array |
UserCustomerSearchResults
Customer list
Name | Schema |
---|---|
data |
< data > array |
paging |
data
Name | Description | Schema |
---|---|---|
cid |
Customer ID |
string |
customerAlias |
Alias of Customer |
string |
customerName |
Name of Customer |
string |
paging
Name | Schema |
---|---|
limit |
integer |
offset |
integer |
total |
integer |
ValidationError
Name | Description | Schema |
---|---|---|
code |
Unique internal error code |
string |
details |
||
message |
Description of the error code |
string |
details
Name | Schema |
---|---|
fields |
< fields > array |
fields
Name | Description | Schema |
---|---|---|
code |
Unique internal error code |
string |
message |
Description of the error code |
string |
name |
Name of the field |
string |
Security
oauth2_implicit
Type : oauth2
Flow : implicit
Token URL : https://cloudentity.dev.cloudentity.com/oauth/authorize
oauth2_authorizationCode
Type : oauth2
Flow : accessCode
Token URL : https://cloudentity.dev.cloudentity.com/oauth/authorize
Token URL : https://cloudentity.dev.cloudentity.com/oauth/token
oauth2_password
Type : oauth2
Flow : password
Token URL : https://cloudentity.dev.cloudentity.com/oauth/token
SsoToken
Type : apiKey
Name : token
In : HEADER