© 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
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: '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",
"detail": "text",
"instance": "text"
}
const response = await fetch('/api/AdminAccount/{adminId}/CustomPermission', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"sitePermissions": [
{
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
},
"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"
]
}
]
}
}
],
"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"
]
}
}
}