Programming Guides › Programming Guide for C › Policy Management API Guidance › Function Declarations for the Policy Management API › Sm_PolicyApi_RemoveAdminFromDomain()
Sm_PolicyApi_RemoveAdminFromDomain()
Disassociates the administrator object identified by pszAdminOid from the domain identified by szDomainOid.
Type
Administrator function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_RemoveAdminFromDomain (
void* pSessionHandle,
const char* pszAdminOid,
const char* pszDomainOid
);
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.
|
pszDomainOid
|
I
|
A null-terminated string containing the object identifier of an existing domain.
|
Returns
- Sm_PolicyApi_Success. The administrator was removed successfully from a domain.
- Sm_PolicyApi_Failure. The administrator was not removed successfully from a domain.
- 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 an administrator from a domain.
- Sm_PolicyApi_InvalidOid. The administrator object identifier or the domain object identifier was not found.
- Sm_PolicyApi_NotFound, if
- There are no administrator object identifiers in the domain collection.
- The administrator object identifier could not be found in the domain collection.
Copyright © 2014 CA.
All rights reserved.
|
|