Authorization IDs and Authorization-Names

An authorization ID is a character string that is obtained by the database manager when a connection is established between the database manager and either an application process or a program preparation process. It designates a set of privileges. It may also designate a user or a group of users, but this property is not controlled by the database manager.

Authorization ID's apply to every statement and are used by the database manager to provide:

An authorization ID applies to every SQL statement. The implicit qualification depends on whether you use static or dynamic SQL:

The authorization ID that is used for authorization checking for a static SQL statement depends on the USRPRF value specified on the precompiler command:

The authorization ID that is used for authorization checking for a dynamic SQL statement also depends on where and how the statement is executed:

On OS/400, the run-time authorization ID is the user profile of the job.

An authorization-name specified in an SQL statement should not be confused with the authorization ID of the statement. An authorization-name is an identifier that is used in GRANT and REVOKE statements to designate a target of the grant or revoke. The premise of a grant of privileges X is that X will subsequently be the authorization ID of statements which require those privileges. A group user profile can also be used when checking authority for an SQL statement. For information on group user profiles, see the book Security - Reference, SC41-5302-04 .

Examples


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]