authzrule attach

Attaches an authorization rule to the specified protected object.

Requires authentication (administrator ID and password) to use.

authzrule attach protobjid ruleid

At most, one rule can be attached to a given protected object. If the object already has a rule attached to it, the specified rule replaces the existing one. The same rule can be attached to multiple protected objects. Ensure the protected object exists in the protected object space before you attach a rule.

Options

Return codes

Example

The following example attaches the r1 rule to the /Test-Space/folder1 protected object named:
pdadmin sec_master> authzrule attach /Test-Space/folder1 r1

See also

authzrule create
authzrule detach

Parent topic: pdadmin commands