Creating a user-defined role

Use the create role command to create a role. The syntax is:

create role role_name [with passwd "password"
	[, {passwd expiration | min passwd length | 
	max failed_logins } option_value ]]

where:

For example, to create the intern_role without a password, enter:

create role intern_role

To create the doctor_role and assign the password “physician”, enter:

create role doctor_role with passwd "physician"

Only the system security officer can create user-defined roles.