When calling the odata/sessions endpoint in both on-premise (version 22.10) and Automation Cloud environments, the API returns a response status of 200, but the result count is 0, and no data is retrieved. Despite configuring UR (User Role) and AR (Automation Role) connections, this issue persists across both environments.
Issue Description :
When calling the odata/sessions endpoint in both on-premise (version 22.10) and Automation Cloud environments, the API returns a response status of 200, but the result count is 0, and no data is retrieved. Despite configuring UR (User Role) and AR (Automation Role) connections, this issue persists across both environments.
Resolution:
We can use this API -> odata/Sessions/UiPath.Server.Configuration.OData.GetGlobalSessions`, rather than `odata/Sessions`.