Hi
I am helping a company consolidate their license usage (on-prem Orchestrator).
A lot of inactive users have a StudioPro license assigned that should be removed.
I am trying to do this using Orchestrator HTTP Request activity and the endpoint:
PATCH /odata/Users({key})
Here is a section of how the JSON payload looks like as a reference for my questions below:
{
"Name": "name",
"UserName": "username",
"LicenseType": "StudioPro",
"MayHaveRobotSession": true,
"MayHaveUnattendedSession": true,
"RobotProvision": {
"UserName": "domain\\username",
"RobotId": 1234,
"RobotType": "StudioPro",
"ExecutionSettings": {
"LoginToConsole": true,
"ResolutionWidth": "1920",
"ResolutionHeight": "1080"
}
},
}
Which key/value pairs must be filled out to withdraw a StudioPro license?
I have tried with:
{
"LicenseType": null,
"MayHaveRobotSession": false,
}
This results in the property Enable user to run automations being deselected in the GUI.
However it does not affect the total license usage being lowered.
And if I manually set the check and chose Automation Developer license, the username is still filled out.
I am now trying to clear out the section regarding RobotProvision, as it seems this is the last bit needed to withdraw the license, but I have not found an approach that works.
{
"RobotProvision": null
}
Is accepted with statuscode 200 but does not clear out the section.
Regards
Soren
