This is an example of getting the IdentityInterface objects for permissions set on a SAS Java MetadataInterface object.
try
{
MetadataInterface object; // any Services-level MetadataInterface object type will work here (your code must fill this in)
AuthorizationUtilInterface authUtil = object.getAuthorizationUtil();
List<IdentityInterface>identities = authUtil.getIdentities();
}
catch (ServiceException e)
{
e.printStackTrace();
}
catch (RemoteException e)
{
e.printStackTrace();
}