Create Directory Robot via API

Hello UiPath Forum - I have created a robot account on my on-prem orchestrator via <orchestrator_url>/identity/management. I want to add this robot account to my Default tenant using orchestrator API. I have had no luck getting this to work with /odata/robots or /odata/users. Has someone figured this one out? and if so can an example request be provided?
Thanks,
-Jaime

Try replicating the requirement from Orchestrator UI while the browser Inspect tool → Network is open.

Check the API calls and adapt them afterward based on your needs.

Thanks for the hint Marian. In case it help others, here is an example payload of what I was able to test and worked for me:

{
“Name”: “test_robot”,
“Surname”: “”,
“UserName”: “test_robot”,
“Domain”: “autogen”,
“DirectoryIdentifier”: null,
“FullName”: “test_robot”,
“EmailAddress”: “”,
“IsEmailConfirmed”: false,
“LastLoginTime”: null,
“IsActive”: true,
“CreationTime”: “2023-08-10T21:00:00.000Z”,
“AuthenticationSource”: “local”,
“Password”: null,
“IsExternalLicensed”: false,
“RolesList”: [
“Robot”
],
“LoginProviders”: ,
“TenantId”: 1,
“TenancyName”: null,
“TenantDisplayName”: null,
“TenantKey”: null,
“Type”: “DirectoryRobot”,
“ProvisionType”: “Manual”,
“LicenseType”: null,
“RobotProvision”: null,
“UnattendedRobot”: {
“CredentialType”: “NoCredential”,
“ExecutionSettings”: {},
“LimitConcurrentExecution”: false
},
“NotificationSubscription”: {
“Queues”: false,
“Robots”: false,
“Jobs”: false,
“Schedules”: false,
“Tasks”: false,
“QueueItems”: false,
“Insights”: false,
“CloudRobots”: false
},
“MayHaveUserSession”: false,
“MayHaveRobotSession”: false,
“MayHaveUnattendedSession”: true,
“MayHavePersonalWorkspace”: false,
“UpdatePolicy”: {
“Type”: “None”
}
}

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.