GRANT CHANGE PASSWORD Statement

Allows users to manage passwords for other users and administer the CHANGE PASSWORD system privilege.

A user can be granted the ability to mange the password of any user in the database (ANY) or only specific users (target_users_list) or members of specific roles (ANY WITH ROLES target_roles_list). Administrative rights to the CHANGE PASSWORD system privilege can only be granted when using the ANY clause.

Syntax

GRANT CHANGE PASSWORD ( target_user_list | ANY | ANY WITH ROLES target_role_list  )
TO userID [,...] 
[ WITH ADMIN [ONLY] OPTION | WITH NO ADMIN OPTION]

Parameters

Examples

Usage

If no clause is specified, ANY is used by default.

If no administrative clause is specified in the grant statement, the WITH NO ADMIN OPTION clause is used.

By default, the CHANGE PASSWORD system privilege is granted to the SYS_AUTH_SA_ROLE compatibility role with the WITH NO ADMIN OPTION clause and to the SYS_AUTH_SSO_ROLE compatibility role with the ADMIN ONLY OPTION clause, if they exist.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions