MashZone NextGen 10.2 | Appendix | Administration | Getting Started with the MashZone NextGen Server | Use the Default MashZone NextGen User Repository | Grant dashboard and data feed permissions via API console
 
Grant dashboard and data feed permissions via API console
 
Enable dashboard and data feed creation
You can use the API console to grand the permissions to create and edit dashboards and data feeds to MashZone NextGen users and user groups.
You have two options to assign the permissions to specific users and user groups. Using the Admin Console, as described in Manage Users and Manage User Groups, and in addition, by using the API console.
By default, the permissions to create and edit dashboard and data feeds is only assigned to members of the Presto_Developer group, see Built-In MashZone NextGen User Groups and Permissions for details. By using the API console you can assign the permissions required to other MashZone NextGen users.
Procedure
1. Open the API Console.
2. Enter the following code blocks if you want to assign the permissions to a specific user. Enter the relevant user name for the userID parameter.
{
"version": "1.1",
"sid": "PolicyService",
"svcVersion": "0.1",
"oid": "addPermissions",
"params": [
"Mashzone",
"type.entity.uiObject",
"accessDashboardEditor",
[
{
"principalId": "userID",
"principalTypeId": "User"
}
]
]
}

{
"version": "1.1",
"sid": "PolicyService",
"svcVersion": "0.1",
"oid": "addPermissions",
"params": [
"Mashzone",
"type.entity.uiObject",
"accessFeedEditor",
[
{
"principalId": "userID",
"principalTypeId": "User"
}
]
]
}
3. Enter the following code blocks if you want to assign the permissions to a specific user group. Enter the relevant group name for the groupID parameter.
{
"version": "1.1",
"sid": "PolicyService",
"svcVersion": "0.1",
"oid": "addPermissions",
"params": [
"Mashzone",
"type.entity.uiObject",
"accessDashboardEditor",
[
{
"principalId": "groupID",
"principalTypeId": "Group"
}
]
]
}

{
"version": "1.1",
"sid": "PolicyService",
"svcVersion": "0.1",
"oid": "addPermissions",
"params": [
"Mashzone",
"type.entity.uiObject",
"accessFeedEditor",
[
{
"principalId": "groupID",
"principalTypeId": "Group"
}
]
]
}
4. Click Run.
The permissions to create and edit dashboards and data feeds are assigned to the relevant user or user group.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release