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_SuccessAdds the administrator to the affiliate domain
- Sm_PolicyApi_FailureFails to add the administrator to the affiliate domain
- Sm_PolicyApi_InvalidHandleInvalidates the initialization before the call
- Sm_PolicyApi_NoSessionInvalidates the administrator session
- Sm_PolicyApi_NoPrivilegeThe administrator has no permission to delete an affiliate domain
- Sm_PolicyApi_InvalidOidThe affiliate domain OID was not found during an update
- Sm_PolicyApi_DuplicateEntrySpecifies that the administrator object identifier already exists in the affiliate domain