Assign Machine user to Org?

Hi,

We have an SSO enabled onprem installation, and I need to create machine user account and have successfully done so using the following curl commands

Get SSO token:

curl "https://api-mgmt-ui-company.com:9099/oauth/token" -i -X POST -H 'Accept: application/json' -H 'Content-Type: application/x-www-form-urlencoded' -d "response_type=token" -d "grant_type=client_credentials" --data-urlencode "client_secret=TheSSOAdminPasword" --data-urlencode "client_id=ssoadmin" -k

Create the user:

curl "https://api-mgmt-ui-company.com:9099/Users" -i -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d '{"userName" : "email@email.com", "name" : {"formatted":"Display Name", "familyName" : "Lastname", "givenName" : "Firstname"}, "emails" : [ {"value" : "email@email.com", "primary" : true } ], "active" : true, "verified" : true, "password" : "SelectAPassword" }' -H "Authorization: Bearer TokenFromStep1" -k

The above steps worked fine and the user was created, however the account was not assigned to any organization so it does not show up in the Edge UI. I have been searching in the documentation on how to assign a user to and org but so far not found the solution.

Let me know if you have any ideas or if you can point me to some documentation that may be of help.

Best Regards

Jerry

0 1 587
1 REPLY 1

Not applicable