

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