View roles - Intergraph Smart Engineering Manager - Help - Intergraph

Intergraph Smart Engineering Manager Smart API Help (2.0)

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

The response to the request is:

{

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

    "value": [

        {

            "Id": "9A2771AC531246A3BE9BE8920F32F8BD",

            "ConcurrencyToken": "5248391434838837786",

            "Name": "MyDomain.com/US ALL Employees",

            "Description": "Site Administrators for this site"

        },

        {

            "Id": "7C96234839E7455E9DEBCAD1283EBCDF",

            "ConcurrencyToken": "5248391434838837786",

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

            "Description": "Role for all developers"

        }

    ]

}