Migrates all users to Oracle Hyperion Enterprise Performance Management System security mode. This might be useful if the user migration failed using EssSetSSSecurityMode.
Syntax
ESS_FUNC_M EssSetUsersToSS (hCtx, option, NewPassword, FileName, flag);
Parameter | Data Type | Description | ||
---|---|---|---|---|
hCtx | ESS_HCTX_T | API context handle. | ||
option | ESS_USHORT_T | Integer representing the desired password creation method for migrated users.
| ||
NewPassword | ESS_STR_T | Password string (if option 2 is used). | ||
FileName | ESS_STR_T | Name of file to contain saved passwords. If null, the default file is $ARBORPATH/bin/MigratedUsersPassword.txt. | ||
flag | ESS_USHORT_T | Whether the passwords file, if already existing, should be overwritten.
|
Return Value
Returns 0 if successful; otherwise, returns an error.
Access
This function requires the caller to be an Administrator.
Example
ESS_FUNC_M ESS_SS_SetUsersToSS(ESS_HCTX_T hCtx, ESS_HINST_T hInst) { ESS_STS_T sts = ESS_STS_NOERR; ESS_USHORT_T option; ESS_STR_T newpassword = ESS_NULL; ESS_STR_T fName = "PasswordList.txt"; /* New Shared Services Native User Password Option: * * 0 to use user provided password * 1 to use the user name as password * 2 to automatically generate a password **/ option = 2; /* Generate a password */ sts = EssSetUsersToSS(hCtx, option, newpassword, fName, ESS_FILE_OVERWRITE); if(sts) printf("Failed to migrate Users to Shared Services mode.\n"); return (sts); }
See also an extended Shared Services Migration and User Management API Example
See Also