Refresh users - 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

This request allows you to update the site administrator groups and the plant structure roles to reflect changes made to the Microsoft user groups upon which the group or role is based, or changes made to the access rights for a role.

Use the POST method to refresh a user list with the following input:

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

  • Resource path: /Sites('<Site Name>')/Plants('<Plant Name>')Com.Ingr.Sem.V2.RefreshUsers/

  • Resource path strings are case-sensitive.

  • The backslash at the end of the resource path is mandatory.

Sample URI

POST

https://WebApiServer1.APIServerDomain.com/sem-webapi/sem/V2/Sites('WebAPISite_01')/Plants('WebAPIPlant_01')/Com.Ingr.Sem.V2.RefreshUsers/

Sample JSON response

The response to the request is:

{

"@odata.context": "https://localhost/sem-webapi/sem/V2/$metadata#Com.Ingr.Sem.V2.RefreshUsersResult",

    "Roles":

[

        {

            "RoleId": "9A2771AC531246A3BE9BE8920F32F8BD",

            "RoleName": "MyDomain.com/US-ALL Employees",

            "IsRefreshed": true

        },

        {

            "RoleId": "29715330B28649DDB3029D33259EDF3B",

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

            "IsRefreshed": true

        }

    ]

}