To send requests to the CyberArk Identity SCIM server, you need a user with access to an OAuth2 Client app. Once this is established, the authenticated user can use the OAuth2 Client app to retrieve a Bearer Token. This Bearer Token validates the user to the SCIM server when it's include in the REST request.
This allows third-party applications to manage objects through the SCIM server using HTTP requests such as GET, POST, PUT. Supported requests depend on the object. Supported objects are:
- PAM objects
Create a user that is an OAuth confidential client to access the OAuth2 Client app.
- Log in to the Admin Portal with an administrative account.
- Click Core Services > Users > Add User.
- Give your user a login name, display name, and password.
- In the Status section in the account information page, select Is OAuth confidential client in order to change your user's permission settings, then click Create User.
Create a new role for the previously created SCIM user. You will later deploy the OAuth2 Client app to this role.
- Click Core Services > Roles > Add Role.
- Enter a suitable name for the SCIM role (e.g. SCIM Client) and save the role. Remember the name of the role as you will need it later.
On the Administrative Rights page, add the appropriate administrative rights, depending on what you plan to use the client app for.
Add the Vault Management right to allow users in this role to read and manage PAM objects in CyberArk Privilege Cloud. Adding any other management with the Vault Management will override the Vault component and you will not be able to view any Vault objects.
- Navigate to the Members page, then click *Add to add a new member to the role, then type the username created previously to find your user.
- Click Save after adding your user.
Log in to the Admin Portal with administrative credentials.
Click Web Apps > Add Web Apps > Custom, then click Add next to OAuth2 Client.
Add a distinctive name to your Application ID and personalize it by including a description and optionally a logo.
On the General Usage page, make sure that the Client ID Type is Confidential, Must be OAuth Client (users with the OAuth role can access the application).
On the Tokens page, select Client Creds.
On the Scope page, add a new scope by clicking Add and enter a name for the scope.
Under Allowed Rest APIs, click Add and then enter scim* in the REST Regex Box.
Navigate to the Permissions page, then add the role you created previously and click Save.
The application is now deployed.
Copy the bearer token so you can authenticate with the app when you test the endpoints.
- On the OAuth2 Client app, select Actions > Create Bearer Token and enter the OAuth 2.0 Client user information.
This is the username and password for the SCIM user you configured previously.
- Copy the Bearer Token listed.
If you lose the token, you will need to recreate it. Include the Bearer Token in REST requests to authenticate your access to the SCIM endpoints.
Updated 11 months ago