1つのグループをEPM Systemセキュリティ・モードに移行します。EssSetSSSecurityModeを使用したグループ移行が失敗した場合に役に立ちます。
構文
ESS_FUNC_M EssSetGroupToSS (
hCtx
,
GroupName
);
| パラメータ | データ型 | 説明 |
|---|---|---|
hCtx |
ESS_HCTX_T |
APIコンテキスト・ハンドル。 |
GroupName |
ESS_STR_T |
Shared Services(入力)に変換するグループの名前。 |
戻り値
正常終了の場合は0が戻され、それ以外はエラーが戻されます。
アクセス
この関数を使用するには、呼出し元が管理者である必要があります。
例
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);
}
拡張されたShared Servicesの移行とユーザー管理のAPIの例も参照してください