Disassociates the user identified by pszUserPolicyOid from the policy identified by pszPolicyOid. Only one user specification (which may be an aggregate) can be removed at a time.
Type
User and user state function.
Syntax
int SM_EXTERN Sm_PolicyApi_RemoveUsersFromPolicy ( void* pSessionHandle, const char* pszPolicyOid, const char* pszUserPolicyOid );
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. |
pszPolicyOid |
I |
A null-terminated string containing the object identifier of an existing policy from which a user is to be removed. |
pszUserPolicyOid |
I |
A null-terminated string containing the object identifier of an existing policy user. |
Remarks
This function is successful only when the pointer to Sm_PolicyApi_User_t is obtained with the Sm_PolicyApi_GetPolicyUsers() function. If the user is retrieved with Sm_PolicyApi_LookupDirectoryEntry(), Sm_PolicyApi_GetDirectoryContents(), or Sm_PolicyApi_ValidateDirectoryEntry(), pszUserPolicyOid will be invalid and the call will fail.
Returns
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |