PermissionGroup - Intergraph Smart 3D Web API - Customization & Programming - Hexagon PPM

Intergraph Smart 3D Admin Web API Programmers Reference

Language
English
Product
Intergraph Smart 3D Web API
Subproduct
Smart 3D Web APIs
Search by Category
Customization & Programming
Smart 3D Version
13

To create a PermissionGroup on Plant/Catalog under a PermissionGroupFolder:

POST

<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/PermissionGroupFolderChildren(‘PGRootFolder’)/PermissionGroups

{

"Name": "name of PG to be created",

“Location@odata.bind”: "<ServiceRoot>/Sites(‘MySiteAlias’)/Locations(‘id’)”

}

Or, if we know AccessControlRules to be associated to the PermissionGroup we can provide them here:

{

"Name": "name of PG to be created",

“Location@odata.bind”: "Sites(‘MySiteAlias’)/Locations(‘id’)”,

“AccessControlRules”: [

{“Role”:“domain\\user1”,“AccessRight”: “Com.Ingr.S3dadmin.V1.Write” },

{“Role”: “domain\\user2”, “AccessRight”: “Com.Ingr.S3dadmin.V1.Read” },

]

}

  • At least one of the AccessControlRule specified must have Write or FullAccess to successfully create PermissionGroup.

  • In the event, AccessControlRules are not provided, it would create an AccessControlRule with the token user and provide FullAccess. When specified, token user AccessControlRule will not be created.

Similarly, to create a PermissionGroup under a Folder for Catalog:

<ServiceRoot>/Sites(‘MySiteAlias’)/Catalogs(‘CatalogA’)/PermissionGroupFolderChildren(‘CatalogPGRootFolder’)/ChildFolders("Level1 Folder")/PermissionGroups

{

"Name": "name of PG to be created",

“Location@odata.bind”: Sites(‘MySiteAlias’)/Locations(‘id’)”

}