Running the Privilege Check Macro - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

After you create the macro, you can run the macro to check access privileges for a 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 runs the macro must have EXECUTE privileges on the database that contains the macro.