Create a Local User in Identity Manager

With a successful authentication returning a valid sessionToken, let's apply this to make an authenticated request to our VMware Identity Manager tenant and create a local user with the API.

1. Setup the Request Headers

  1. Select POST as the verb.
  2. Enter https://{your_tenant_fqdn}/SAAS/jersey/manager/api/scim/Users for the Request URL.
    NOTE - Remember to replace {your_tenant_fqdn} with your VMware Identity Manager Tenant Fully Qualified Domain name (FQDN).
  3. Click the Headers tab.
  4. Enter Authorization for the Key.
  5. Enter HZN for the Value.  
    NOTE - Include the extra space after "HZN"! We will be pasting the sessionToken after HZN and should appear as HZN {sessionToken}, otherwise the request will fail!
  6. Click Paste to insert the copied sessionToken.

2. Setup the Request Body

  1. Click the Body tab.
  2. Select Raw.
  3. Enter the below JSON data for the Body.
    {"schemas": [ "urn:scim:schemas:core:1.0" ], "userName": "apiuser", "name": { "givenName": "API", "familyName": "User" }, "emails": [ { "value": "[email protected]" } ], "password": "VMware1!" }
  4. Click Send.

3. View the Response

  1. Scroll down to view the response.
  2. Confirm that the Status shows 201 Created.  This confirms the user was created.
  3. Review the response of the API request to confirm that the created user details match the values provided in our Request Body from the previous step.  Locate the apiuser data and then find the id field and highlight the text (NOT the quotation marks) and right-click.
  4. Click Copy.

4. Save the ID of the Created User

  1. Click the Notepad icon from the Task bar.
  2. Enter Created User ID: into the Notepad file beneath your sessionToken.
  3. Right-click and click Paste.

When asked for your Created User ID in future steps, refer to the pasted value here in your Notepad file.

5. View the Created User in the Identity Manager Administrator Console

Back in the VMware Identity Manager Administrator Console,

  1. Click Users & Groups.
  2. Click the User,API entry.

6. Confirm the User Details

  1. Scroll through the User Details and confirm they match the values entered from our API request.
  2. Click Back to User List.

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.