

User and Group Information › EApiFetchUsersInGroup › Example
Example
#include <eapidef.h>
EAPIRC rc = EAPI_SUCCESSFUL_RC;
GRPID szGroupId;
LCOUNT lCount, i;
GRPID szArrayUserIds[100];
strcpy(szGroupId,"ATEAM");
lCount = 100L;
rc = EApiFetchUsersInGroup(szGroupId,
&lCount,
szArrayUserIds);
if ( rc > EAPI_MAXIMUM_COUNT_REACHED_RC)
printf("Error in FetchUsersInGroup\n");
else
{
printf("Count = %ld\n", lCount);
for (i=0; i < lCount; i++)
printf("User Id[%ld] = %s\n", i, szArrayUserIds[i]);
}
Copyright © 2014 CA.
All rights reserved.
 
|
|