Sm_PolicyApi_AddAdminToAffiliateDomain()

The Sm_PolicyApi adds an administrator to an affiliate domain.
casso126
The Sm_PolicyApi adds an administrator to an affiliate domain.
Type
Federation function
Syntax
int SM_EXTERN Sm_PolicyApi_AddAdminToAffiliateDomain (
void*pSessionHandle,
const char*pszAdminOid,
const char*pszAffiliateDomainOid
);
Parameter
I/O
Description
pSessionHandle
I
A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session.
pszAdminOid
I
A null-terminated string containing the object identifier of an existing administrator.
pszAffiliate
DomainOid
I
A null-terminated string containing the object identifier of an existing affiliate domain.
Returns
  • Sm_PolicyApi_Success
    Adds the administrator to the affiliate domain
  • Sm_PolicyApi_Failure 
    Fails to add the administrator to the affiliate domain
  • Sm_PolicyApi_InvalidHandle
    Invalidates the initialization before the call
  • Sm_PolicyApi_NoSession
    Invalidates the administrator session
  • Sm_PolicyApi_NoPrivilege
    The administrator has no permission to delete an affiliate domain
  • Sm_PolicyApi_InvalidOid
    The affiliate domain OID was not found during an update
  • Sm_PolicyApi_DuplicateEntry
    Specifies that the administrator object identifier already exists in the affiliate domain