setPermissionsByUser
Purpose
Sets the permissions for the specified user on the specified entity and returns a status.
Throws an exception if entityType is field, as
user-based access control is not supported for fields.
HTTP Method
POST
URL
https://app.infiniteblue.com/rest/api/setPermissionsByUserURL Parameters
sessionId
The session ID obtained from the body of the response when calling login.
userId
The ID of the user.
entityType
The type of entity for which permissions should be set. Can be one of the
following: object, application,
menu, view, action,
report, chart.
entityId
The original ID of the entity for which permissions are to be set.
permissions
A comma-separated list of the permissions to be give to the entity. Can be
any of the following values: view, create, edit,
delete, login. An
empty value clears all permissions on the entity for that role. You can set
login only on a master tenant when
entityType is object and
entityId evaluates to Customer. Note
that when entityType is application, menu, view, action, report, or chart, the only valid
permission is view.
output
Optional parameter specifying the output format, one of:
Permissions Required
Full administrative privileges.
Response
The status in XML or JSON format.
Example
Output example in XML format:
<?xml version="1.0" encoding="UTF-8" ?> <resp status="ok"> </resp>