orchestrator
2022.10
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
![](https://docs.uipath.com/_next/static/media/grid.05ebd128.png?w=3840&%3Bq=100)
Orchestrator API 指南
文件夹请求
发布
https://{yourDomain}/odata/Folders/UiPath.Server.Configuration.OData.AssignUsers
{
"assignments": {
"UserIds": [58571],
"RolesPerFolder": [
{
"FolderId": 14091,
"RoleIds": [25]
}
]
}
}
{
"assignments": {
"UserIds": [58571],
"RolesPerFolder": [
{
"FolderId": 14091,
"RoleIds": [25]
}
]
}
}
获取
https://{yourDomain}/odata/Folders/UiPath.Server.Configuration.OData.GetUsersForFolder(key=14089,includeInherited=true)?$expand=UserEntity%2CRoles
{
"@odata.context": "https://{yourDomain}/odata/$metadata#UserRoles",
"@odata.count": 2,
"value": [
{
"Id": 52454,
"UserEntity": {
"UserName": "admin",
"IsInherited": true,
"Id": 52454
},
"Roles": [
{
"Name": "Administrator",
"Origin": "Assigned",
"Id": 13
},
{
"Name": "Test",
"Origin": "Assigned",
"Id": 25
}
]
},
{
"Id": 58571,
"UserEntity": {
"UserName": "Petrix",
"IsInherited": false,
"Id": 58571
},
"Roles": [
{
"Name": "Test",
"Origin": "Assigned",
"Id": 25
}
]
}
]
}
{
"@odata.context": "https://{yourDomain}/odata/$metadata#UserRoles",
"@odata.count": 2,
"value": [
{
"Id": 52454,
"UserEntity": {
"UserName": "admin",
"IsInherited": true,
"Id": 52454
},
"Roles": [
{
"Name": "Administrator",
"Origin": "Assigned",
"Id": 13
},
{
"Name": "Test",
"Origin": "Assigned",
"Id": 25
}
]
},
{
"Id": 58571,
"UserEntity": {
"UserName": "Petrix",
"IsInherited": false,
"Id": 58571
},
"Roles": [
{
"Name": "Test",
"Origin": "Assigned",
"Id": 25
}
]
}
]
}
\FolderNavigation\GetFolderNavigationContextForCurrentUser
端点响应正文中的 IsPersonal
布尔属性检查具有所查询 ID 的文件夹(例如 302428
)是否为个人工作区。
获取
https://{yourDomain}/api/FoldersNavigation/GetFolderNavigationContextForCurrentUser?folderId=302428
{
"Id": 302428,
"DisplayName": "rachel.green@friends.com's workspace",
"IsSelectable": true,
"IsPersonal": true,
"ProvisionType": "Automatic",
"Ancestors": [],
"ChildrenPage": [],
"ChildrenCount": 0
}
{
"Id": 302428,
"DisplayName": "rachel.green@friends.com's workspace",
"IsSelectable": true,
"IsPersonal": true,
"ProvisionType": "Automatic",
"Ancestors": [],
"ChildrenPage": [],
"ChildrenCount": 0
}