Gets the list of groups that a user is member of.
Type
User and user state function.
Syntax
int SM_EXTERN Sm_PolicyApi_GetUserGroups ( void * pSessionHandle, const char * pszUserDirOid, const char * pszUserDN, const bool bRecursive, char** pszGroups[] );
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 |
The user's object identifier. |
pszUserDN |
I |
The user's distinguished name. |
bRecursive |
I |
Value indicating whether to search just one level or all levels. If you specify True, all levels are searched. |
pszGroups |
O |
Array that will contain the groups that the user belongs to. Free the memory allocated for the array by calling Sm_PolicyApi_FreeStringArray(). |
Returns
Copyright © 2014 CA.
All rights reserved.
|
|