© 2024 Parallels International GmbH. All rights reserved.
Update a Custom Permission of an Admin Account. Specifying a SiteId is mandatory except for Monitoring and Reporting. To set a Permission for a specific object, provide an ObjId within the body. To set a Global Permission, do not provide an ObjId within the body.
Admin Account ID
Custom Permission settings
ID of a particular RAS Farm object to assign permissions for.
Permission Object Types
Permission Flags
No Content
const response = await fetch('/api/AdminAccount/{adminId}/CustomPermission', {
method: 'PUT',
headers: {
"Content-Type": "application/json; api-version=1.0"
},
body: JSON.stringify({
"objectType": [
"3 = Gateways",
"5 = RemotePCs",
"7 = Brokers",
"16 = RDSHostPools",
"26 = WinDevices",
"31 = Themes",
"40 = Publishing",
"44 = Certificate",
"51 = HALB",
"83 = CustomRoutes",
"90 = AppPackages",
"2003 = Reporting",
"2004 = Monitoring",
"2012 = Connection",
"2023 = AVD",
"2032 = License",
"2033 = ManageSessionsByADGroups"
],
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
}),
});
const data = await response.json();
{
"type": "text",
"title": "text",
"status": 0,
"detail": "text",
"instance": "text"
}
Retrieve the Custom Permissions of an Admin Account by ID.
Admin Account ID
Success
List of the site permissions
The global permissions
const response = await fetch('/api/AdminAccount/{adminId}/CustomPermission', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"sitePermissions": [
{
"siteId": 0,
"rdsHosts": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"rdsHostPools": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"remotePCs": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"gateways": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"brokers": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"halb": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"themes": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"publishing": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"connection": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"certificate": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"winDevices": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"customRoutes": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"appPackages": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
},
"manageSessionsByADGroups": {
"sitePermission": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"objectPermissions": [
{
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
],
"objId": 0
}
]
}
}
],
"globalPermissions": {
"monitoring": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"reporting": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
},
"license": {
"permissions": [
"0 = None",
"1 = View",
"2 = Modify",
"4 = ManageSessions",
"8 = Add",
"16 = Delete",
"32 = Control"
]
}
}
}