© 2024 Parallels International GmbH. All rights reserved.
Retrieve the Permissions of the logged Admin.
Success
The current admin name
Admin Type
Email address of the current admin
The group name
Mobile number of the current admin
The SID of the current admin
Administrator type
List of Runtime Sites for the current admin
Farm Mode
Whether monitoring is enabled or not for the current admin
Whether reporting is enabled or not for the current admin
Whether licensing is enabled or not for the current admin
Whether quick keypad is enabled or not for the current admin
Whether policies are enabled or not for the current admin
Section Permissions
The RAS power administrator permissions
The custom permissions list
const response = await fetch('/api/Session/CurrentAdminPermissions', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"adminName": "text",
"adminType": [
"0 = User",
"1 = Group",
"2 = UserGroup"
],
"email": "text",
"groupName": "text",
"mobile": "text",
"sid": "text",
"permissions": [
"0 = PowerAdmin",
"1 = RootAdmin",
"2 = CustomAdmin"
],
"runtimeSitesList": [],
"farmMode": [
"0 = Standard",
"1 = TenantBroker"
],
"monitoring": false,
"reporting": false,
"licensing": false,
"quickKeypad": false,
"policies": false,
"sectionPermissions": {
"sectionPermissionsList": [
{
"tenants": false,
"rdpServers": false,
"rdpGroups": false,
"rdpScheduler": false,
"rdpSessionMgmnt": false,
"providers": false,
"vdiHostPools": false,
"vdiTemplates": false,
"vdiHosts": false,
"vdiSessionMgmnt": false,
"gateways": false,
"tunnellingPolicies": false,
"pCs": false,
"brokers": false,
"autoPromote": false,
"halb": false,
"auditing": false,
"globalLogging": false,
"redirURL": false,
"notifications": false,
"globalClientSetts": false,
"siteFeatures": false,
"themes": false,
"certificates": false,
"enrollmentServers": false,
"adIntegration": false,
"loadBalancer": false,
"publishing": false,
"universalPrinting": false,
"universalScanning": false,
"connection": false,
"connAuthenticate": false,
"connSettings": false,
"connMFAuthenticate": false,
"saml": false,
"connAllowedDevices": false,
"deviceManager": false,
"devices": false,
"winDeviceGroups": false,
"devicesOptions": false,
"devicesSchedule": false,
"administration": false,
"farmFeatures": false
}
]
},
"powerPermission": {
"allowSiteChanges": false,
"allowConnectionChanges": false,
"allowSessionManagement": false,
"allowDeviceManagementChanges": false,
"allowViewingReportingInfo": false,
"allowViewingLicenseInfo": false,
"allowViewingSiteInfo": false,
"allowPublishingChanges": false,
"allowPolicyChanges": false,
"allowViewingPolicyInfo": false,
"allowAllSites": false,
"allowInSiteIds": []
},
"customPermission": {
"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"
]
}
}
}
}