I can assign site roles to the user programmatically by following an API call,
UserGroupRoleLocalServiceUtil.addUserGroupRoles(userIds, mySite, SiteroleIds);
Similarly, can someone tell me how to programmatically assign site roles to UserGroup?
I have both usergroupID and SiteRoleId in my method, so which API method do I need to call to assign site roles to a group of users?
source share