Example: Creating an INVOKER Authorization Explicitly - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

This example creates an INVOKER authorization object with the name sales for the user name sam johnson and the user password tercesym, specifying AS INVOKER TRUSTED (the default).

CREATE AUTHORIZATION sales 
AS INVOKER TRUSTED
USER 'sam johnson'
PASSWORD 'tercesym';

The system uses this OS platform user context to run all external routines that contain an EXTERNAL SECURITY INVOKER clause when invoked by the database user that created this authorization.