Previous Topic: AddRule Method—Adds a Rule to the Policy

Next Topic: AllowNested Method—Sets or Retrieves the AllowNested Flag

AddUser Method—Adds a User to the Policy

The AddUser method adds a user to the policy.

Syntax

The AddUser method has the following format:

Netegrity::PolicyMgtPolicy‑>AddUser(user [, iExcludeUser] [, iRecursiveFlag] [, iANDUserFlag])

Parameters

The AddUser method accepts the following parameters:

user (PolicyMgtUser)

Specifies the user to add.

iExcludeUser (int)

(Optional) Specifies whether to exclude a user:

(Optional) Specifies the setting for the AllowNested flag:

(Optional) Specifies the setting for the AND flag:

1 set the AND flag

0 disables the AND flag

Return Value

The AddUser method returns one of the following values:


Copyright © 2010 CA. All rights reserved. Email CA about this topic