Loading
How to list users by Org# and contains the 'principal_uid' field

Step 1. I use API ( POST https://us-4.rightscale.com/api/users   ) to create a user.

Step 2. I use API ( POST https://governance.rightscale.com/grs/orgs/  28039/users  ) to add a user into an org.

Step 3. I use API ( GET https://governance.rightscale.com /grs/orgs/28039/users ) to list all users in an org.

In Step 3, but I did not find the 'principal_uid' field in the JSON response.

If I use GET https://us-4.rightscale.com/api/users  to list users, the result only includes my enterprise org's users.

Note: My enterprise Org is 27845,My customer-org is 28039.

So, how to list users by Customer-Org and contains the 'principal_uid' field?

 

Thanks.

 

 

  1. create sso user@idpHref = /api/identity_providers/123 @synnex_local_user_id = 12345 @name createUserPOST https://us-4.rightscale.com/api/usersContent-Type: application/jsonX-Api-Version: 1.5Authorization: Bearer {{access_token}}{ "user":{ "email":"mason-test@company.com", "company":"Company name", "first_name":"Mason", "last_name":"Rao", "phone":"123456789","identity_provider_href": "{{idpHref}}","principal_uid": "{{synnex_local_user_id}}" }}// 添加成功后,在Response.Headers["Location"] 获得当前添加的user_id
  1. add user to a org@user_id = 126549POST https://governance.rightscale.com/grs/orgs/{{org_id}}/usersContent-Type: application/jsonX-Api-Version: 2.0Authorization: Bearer {{access_token}}{ "id": "{{user_id}}", "kind": "user"}
  1. list all users in an orgGET https://governance.rightscale.com/grs/orgs/{{org_id}}/usersX-Api-Version: 2.0Authorization: Bearer {{access_token}}

 

 


Loading
How to list users by Org# and contains the 'principal_uid' field