View roles - Intergraph Smart Engineering Manager - Help - Intergraph

Intergraph Smart Engineering Manager Smart API Help (Version 2)

PPMProduct
Intergraph Smart Engineering Manager
PPMCategory_custom
Help
Version_WebSEM
2.0

Use the GET method to expose existing roles in your site or plant with the following input:

  • Service Root URI: https://<Server Name>/<IIS Application Name>/sem/v2

  • Resource path: /Sites('<Site Name>')/Plants('<Plant Name>')/Roles

Resource path strings are case-sensitive.

Sample URI

GET

https://WebApiServer1.APIServerDomain.com/sem-webapi/sem/v2/Sites('WebAPISite_01')/Plants('WebAPIPlant_01')/Roles

Sample JSON response

A typical response to the request is:

{

"@odata.context": "https://localhost/sem-webapi/sem/v2/$metadata#Sites('WebAPISite_01')/Plants('WebAPIPlant_01')/Roles",

    "value": [

        {

            "Id": "09291FE18A944572A5781CBE1B5754E2",

            "ConcurrencyToken": "5248391434838837786",

            "Name": "MyDomain.com/US Admins",

            "Description": "Site Administrators for this site"

        },

        {

            "Id": "29715330B28649DDB3029D33259EDF3B",

            "ConcurrencyToken": "5248391434838837786",

            "Name": "MyDomain.com/US-DG-Develop",

            "Description": "Role for all developers"

        }

    ]

}