This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Running the sample

  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 ant create-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 printed in the command line output. 
  2. Log in to the Identity Server and go to 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.

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. 

    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.

 

 

  • No labels