Hello,
I'm tring to update the sitestore permissions through Java Api and If the roles not available I have to add the roles using Add group.
select sitestore->extras->change permissions
SiteStoreRoot root = (SiteStoreRoot) project.getUserService().getStore(Store.Type.SITESTORE, false);
root.getDefinedPrincipalPermissions();\\returns the list of groups in store
Permission permission = root.getPermission(group);
permission.canChangePermission());//return the field values
But how to set values to the fields and how to add the groups using JavaApi?
FYR,
![431167_pastedImage_0.png 431167_pastedImage_0.png](/t5/image/serverpage/image-id/3904i6F8236D15801A69E/image-size/large?v=v2&px=999)