Check Permissions | RESTful API | Teradata Data Mover - Check Permissions (RESTful API) - Teradata Data Mover

Teradata® Data Mover User Guide - 20.01

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Data Mover
Release Number
20.01
Published
November 2023
Language
English (United States)
Last Update
2023-12-05
dita:mapPath
hlv1700545853003.ditamap
dita:ditavalPath
mpm1591127278842.ditaval
dita:id
don1467241476387
Product Category
Analytical Ecosystem

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 authentication
User must be dmcl_admin if call is from Viewpoint.
JSON Data Type: String
Required: Yes
Portlet-User
Description: Viewpoint user login
JSON Data Type: String
Required: No, unless call is made from Viewpoint
Portlet-Roles
Description: Roles associated with Viewpoint user login
JSON Data Type: String, separated by commas when more than one role exists
Required: No, unless call is made from Viewpoint

Request Parameters

logic (not currently available)
Description: What logic to use to combine permissions when multiple permissions exist
JSON Data Type: String, valid values are and or or
Required: No
permissions
Description: A list of permissions or actions the user or roles currently has
Currently only one permission is allowed in the list.
JSON Data Type: String
Required: Yes

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" ]
                              } ]
 }