17.10 - Executing the Privilege Check Macro - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Advanced SQL Engine Security Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2022-02-15
dita:mapPath
ppz1593203596223.ditamap
dita:ditavalPath
wrg1590696035526.ditaval
dita:id
zuy1472246340572

After you create the macro, you can execute it to check access privileges for a particular user with the command:

execute database_name.AllUserRights ('username');
database_name
The name of the macro, and also identifies database for which the macro checks user privileges.
username
The name of a permanent database user for which the macro checks privileges. The user that executes the macro must have EXECUTE privileges on the database that contains the macro.