Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Start the Identity Server, using the startup script found in the [IS_Home]/bin directory.
      • wso2server.sh for Linux
      • wso2server.bat for Windows
  2. Download and Install Apache Ant, if you have not already done so.
  3. Refer the client.properties file for SCIM user endpoint, group endpoint URLs, username and password. Modify it if the default configuration to run the sample are different.
  4. Copy the scim-provisioning folder to the Identity Server's samples directory[IS_Home/samples/]. 
  5. Using the command line, navigate inside the scim-provisioning directory [IS_Home/samples/scim-provisioning] and run the ant command. 

Users

Creating a user
  1. Run the the ant create-user command  command at this directory level in the command line and observe the JSON message sent to the SCIM endpoint, the response status and the SCIM response printed in the command line output. 
  2. Log in to the Identity Server and go to Users>List in Users and Roles>List in the Main menu in the management console
  3. Click Users and you can now view a new user created in the list using the sample.
Note

To add more attributes to the create user method, you can modify the org.wso2.scim.sample.user.CreateUser class accordingly and observe the output in the command line.

Updating a user
  1. Run the ant update-user command at this directory level in the command line and observe the JSON message sent to the SCIM endpoint, the response status and the SCIM response are printed in the command line output.

    You will notice that the user created in the step 4 above, is updated with new attribute values for: display name and work email.
    
    If you wish, you can modify the org.wso2.scim.sample.user.UpdateUser class to add more attributes to user
    and observe the output in the commandline.
  2. Go to Users and Roles>List in the Main menu in the management console of IS.
  3. Click Users and select the user created in the first step. You will notice that the user is updated with new attribute values for display name and work email. 

    Note

    To add more attributes to the create user method, you can modify the org.wso2.scim.sample.user.UpdateUser class accordingly and observe the output in the command line.

     

     

     

     

 

Groups

Creating a group
  1. Run the ant create-group command at this directory level in the command line and observe the JSON message sent to the SCIM endpoint, the response status and the SCIM response printed in the command line output.
  2. Go to Users and Roles>List in the Main menu in the management console of IS.
  3. Click Roles and you can now view a new group created in the list, and the new user that was assigned to that role using the sample.