Migrates a group to EPM System security mode. This might be useful if the group migration failed using EssSetSSSecurityMode.
Syntax
ESS_FUNC_M EssSetGroupToSS (hCtx, GroupName);
| Parameter | Data Type | Description |
|---|---|---|
hCtx | ESS_HCTX_T | API context handle. |
GroupName | ESS_STR_T | Name of the group to convert to Shared Services (input). |
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_SetGroupToSS(ESS_HCTX_T hCtx, ESS_HINST_T hInst)
{
ESS_STS_T sts = ESS_STS_NOERR;
ESS_STR_T groupName = ESS_NULL;
sts = EssAlloc(hInst, sizeof(ESS_USERNAME_T), &groupName);
if(sts)
return (sts);
memset(groupName, 0, sizeof(ESS_USERNAME_T));
strcpy( groupName, "essgrp");
sts = EssSetGroupToSS(hCtx, groupName);
if(sts)
printf("Failed to migrate Group %s to Shared Services mode.\n", groupName);
if (groupName)
EssFree(hInst, groupName);
return (sts);
}See also an extended Shared Services Migration and User Management API Example