The DisableByAdmin method sets or retrieves the disabled-by-administrator flag which specifies whether the user account is disabled by the administrator.
Syntax
The DisableByAdmin method has the following format:
Netegrity::PolicyMgtUser‑>DisableByAdmin([disableFlag])
Parameters
The DisableByAdmin method accepts the following parameter:
disableFlag (int)
(Optional) Specifies a new value for the disabled-by-administrator flag.
Specifies that the user account is disabled by the administrator.
Specifies that the user account is not disabled by the administrator.
Note: The user account can be disabled for other reasons. For more information, see Remarks.
Return Value
The DisableByAdmin method returns the new or existing value for the disabled-by-administrator flag:
Specifies that the user account is disabled by the administrator.
Specifies that the user account is not disabled by the administrator.
Note: The user account can be disabled for other reasons. For more information, see Remarks.
Specifies that the call is unsuccessful.
Remarks
User accounts can be disabled for one or more of the following reasons:
For more information, see the method PolicyMgtUser‑>DisableInactive.
For more information, see the method PolicyMgtUser‑>DisableMaxLoginFail.
For more information, see the method PolicyMgtUser‑>DisablePwdExpired.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |