I am able to assign the site roles for user programatically by following API call,
UserGroupRoleLocalServiceUtil.addUserGroupRoles(userIds, mySite, SiteroleIds);
In the similar fashion can any one tell me that how can I assign the site roles for UserGroup programatically?
I have both usergroupID and SiteRoleId in my method so what API method should I need to call to assign the site roles for the user group?