Sm_PolicyApi_RemoveUserDirFromAffiliateDomain()

Removes a user directory from an existing affiliate domain.
casso10
Removes a user directory from an existing affiliate domain.
Type
Federation function
Syntax
int SM_EXTERN Sm_PolicyApi_RemoveUserDirFromAffiliateDomain(
void*pSessionHandle,
const char*pszUserDirOid,
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.
pszUserDirOid
I
A null-terminated string containing the object identifier of an existing user directory.
pszAffiliate
DomainOid
I
A null-terminated string containing the object identifier of an existing affiliate domain.
Returns
  • Sm_PolicyApi_Success. The user directory was removed from the affiliate domain successfully.
  • Sm_PolicyApi_NotFound. The domain does not have the user directory.
  • Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
  • Sm_PolicyApi_NoSession. There is no valid administrator session.
  • Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to remove a user directory from an affiliate domain.
  • Sm_PolicyApi_InvalidOID. The user directory OID or affiliate domain OID was not found during an update.