A user adds themselves to several groups.
The user gets elevated to org admin role, including adding the group to their 'Org Admin Groups' list.
Set the regular 'default group' to the group which they do NOT administer. ( perhaps cause it's a new season, they are in a different role.)
Nuther New season! The user removes themself from the org which they were NOT the admin. The standard 'default org' is now automatically set to None. Also, they no longer have access to the 'default Org' field, since they are member of only the one group ( which they administer).
Now, the user tries to administer users in the group for which they ARE still a member and an admin.
Permission and Access checks fail.
This may also occur for snowpit profiles in the group which they administer.
steps to reproduce:
A user adds themselves to several groups. The user gets elevated to org admin role, including adding the group to their 'Org Admin Groups' list.
Set the regular 'default group' to the group which they do NOT administer. ( perhaps cause it's a new season, they are in a different role.)
Nuther New season! The user removes themself from the org which they were NOT the admin. The standard 'default org' is now automatically set to None. Also, they no longer have access to the 'default Org' field, since they are member of only the one group ( which they administer).
Now, the user tries to administer users in the group for which they ARE still a member and an admin.
Permission and Access checks fail.
This may also occur for snowpit profiles in the group which they administer.