Cloud APIs
/- Foundation Services
- Users and Context
User Context Service
- Get the current context of the user.
Update context for a given user
Get the current context o...
- Retrieve the current context of the user.
- The user is identified through their user-principal, as indicated by the email claim in the JWT token within the authorization header.
- The API caller is authenticated via the service principal, as indicated by the azp (Authorized Party) claim in the JWT token within the authorization header.
- If your application must be scoped to specific billing accounts, the client ID needs the
ccm.billingaccount.read(e.g., the controlPlaneAdmin role) permission to get the context of user. Please raise the request with the CSI team. - If user's context contains a data partition, then the client ID in the service principal must also possess the
ccm.datapartition.read(e.g., the controlPlaneAdmin role) to access the context associated with the user. - The API enforces a request rate limit of 10 requests per minute per caller.
Security
bearer and appkey
- UShttps://api.delfi.slb.com/ccm/userContext/v1/currentContext
- EUhttps://eu-api.delfi.slb.com/ccm/userContext/v1/currentContext
- Mock serverhttps://developer.slb.com/_mock/solutions/ccm/apis/ccm-user-context-service/v1/currentContext
curl -i -X GET \
https://api.delfi.slb.com/ccm/userContext/v1/currentContext \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'appkey: YOUR_API_KEY_HERE'Success
Response
{ "account": { "billingAccountId": "DIGITAL2020", "name": "string", "countryId": "string" }, "department": { "departmentId": "string", "name": "string" }, "contract": { "contractId": "string", "contractName": "string", "countryId": "string" }, "dataPartition": { "dataPartitionId": "string", "name": "string", "slbPartitionId": "string", "endpointId": "string", "endpointName": "string", "instance": "string" } }