Overview
Check if user and roles specified in the header have the necessary permissions for jobs, daemon advanced settings, and daemon access using the following URL and method:
Item | Description | ||
---|---|---|---|
URL | /datamover/permissions | ||
Method | POST |
When security is enabled, only a Viewpoint or command line admin can check daemon access and daemon advanced permissions. Non-admin users can only check job permissions.
Request Header
- Authorization
- Description: Basic header authenticationUser must be dmcl_admin if call is from Viewpoint.
- Portlet-User
- Description: Viewpoint user login
- Portlet-Roles
- Description: Roles associated with Viewpoint user login
Request Parameters
- logic (not currently available)
- Description: What logic to use to combine permissions when multiple permissions exist
- permissions
- Description: A list of permissions or actions the user or roles currently hasCurrently only one permission is allowed in the list.
Response Parameters
No response parameters required.
Examples
The following example checks if a user or role specified in the header has daemon_access permissions:
{"enumerate": true, "permissions":["datamover:daemon_access"] }
The following example lists a true response for a user or role having daemon_access permissions:
{ "result" : true, "permissions" : [ { "resource" : "tdrn:datamover:daemon_access:*", "actions" : [ "read", "write", "execute" ] } ] }