[sdk] Fixing role assignment for groups on a domain different than default