/
Access

Access

URI Definition

Method

URI and Fields

GET




/iap/access/zones/{id}

Returns a collection of user role objects for the specified user. 

Arguments

Argument             

Description                                                                                                  

id

[string]  The ID of a geozone.

Query Parameter

Parameter            

Description                                                                                                  

userId

[string]  The ID of the user.

Response

Parameter            

Description                                                                                                  

user

[integer] The ID of the user.

inherited

[integers]

nonInherited

[integers]

Example

https://localhost/iap/access/zone/88?userId=486

Response:

{                                                                                                                        
"user":486,
"inherited":[],
"nonInherited":[65, 64, 68, 67, 66],
}

  

PUT



/iap/access/zones/{id}

Assigns specified roles for the user.  The request payload contains integers that are the Ids of roles.  A success response is empty.

Arguments

Argument             

Description                                                                                                  

id

(Required)  The ID of a geozone.

Query Parameter

Argument             

Description                                                                                                  

userId

(Required) The ID of the user.

Example

https://localhost/iap/access/zones/1?userid=86                                                            

Payload:

[48,50]

  

Query Parameters

Optional query parameters can be used with your REST request.  Specifying queries is described under Queries and ParametersPath Parameters, and Query Parameters.



Related content

Permissions
More like this
Roles
More like this
Zones
More like this
IAP/REST API Index
IAP/REST API Index
More like this