Authorization (ISecurity Interface) |
Customizes internal authentication policies for the specified user.
Category: Internal authentication methods
Interface version: ISecurity 1.1
Syntax |
SetInternalLoginUserOptions(personName,isDisabled,bypassStrength,bypassHistory, useStdPasswordExpirationDate,passwordExpirationDays,bypassLockout, bypassInactivitySuspension,expireAccount,accountExpirationDate);
Parameters |
Details |
You must have user administration capabilities on the SAS Metadata Server to modify the properties of an internal user account. For information about user administration capabilities, see "Users, Groups, and Roles: Main Administrative Roles" in the SAS Intelligence Platform: Security Administration Guide.
An internal account has a Person object with a simple name value. For example, Name="Joe". It also has an associated InternalLogin object, whose Name= attribute is person@saspw. For example, Name="Joe@saspw." All SAS internal accounts must use the suffix @saspw.
The Person object is created with the AddMetadata method. Its attributes are modified with the UpdateMetadata method. An InternalLogin object is created with the SetInternalPassword method. Its attributes are modified with the SetInternalLoginUserOptions method.
By default, new InternalLogin objects are created with the active server-level internal account policies. The active server-level account policies are the system defaults as modified by omaconfig.xml options. The SetInternalLoginUserOptions method enables you to customize the server-level policies for a particular internal account.
For information about system defaults, see "How to Change Internal Account Policies" in the SAS Intelligence Platform: Security Administration Guide. To determine what the active policy settings are after the omaconfig.xml options are applied, use the GetInternalLoginSitePolicies method.
New InternalLogin objects are created with a 30-day password expiration period. If you change the USESTDPASSWORDEXPIRATIONDAYS parameter to F, then the password does not expire and the integer value in passwordExpirationDays is ignored.
To view the policy settings on an existing internal account, use the GetInternalLoginUserInfo method. The GetInternalLoginUserInfo method also reports the status of the internal account. For example, returned values indicate whether the account is active, disabled, locked out because of unsuccessful authentication, or suspended because of inactivity.
Exceptions Thrown |
The SetInternalLoginUserOptions method does not return any exceptions.
Examples |
The following is a Java example of a SetInternalLoginUserOptions method call:
// Assumes a Person object with Name='testId' already exists // and has an InternalLogin object associated with it iSecurity.SetInternalLoginUserOptions( testId, // username false, // isDisabled false, // bypassStrength true, // bypassHistory false, // useStdPasswordExpirationDays 30, // passwordExpirationDays false, // bypassLockout true, // bypassInactivitySuspension false, // expireAccount 0 // accountExpirationDate );
Related Methods |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.