All
Am writing code to create ACL's.As part of it am getting the user,groups,Roles as shown below.
umPrincipalUser = WPUMFactory.getUserFactory().getUser(struid);
umPrincipalGroup = WPUMFactory.getGroupFactory().getGroup(struid);
umPrincipalRole = WPUMFactory.getRoleFactory().getRole(struid);
String struid am getting as follows
String struid = null;
IResourceAclEntryListIterator iAclIterator = null;
IResourceAclEntry entry = null
while (iAclIterator.hasNext()){
entry = iAclIterator.next();
struid = entry.getPrincipal().getId()
}
The struid retrieved works fine for umPrincipalUser but umPrincipalGroup and umPrincipalRole returns null for the strUid.
Pl let me know what is the exact id format i should pass for Group and Role.
Immediate correct answers will be awarded with maximum points
Thanks