Trying to add a user active in other repositories to another tenant does not return any error but does not add the user.
Changes proposed in this pull request:
Always add invited users to the tenant's Registered Users group
Acceptance Criteria
[ ] Invited users are always added to the Registered Users group
Testing Instructions
Login as a super admin
Create a new tenant (e.g. Tenant A)
Navigate to Tenant A > Dashboard > Manage Users
Invite a new user who does not already exist in the application (i.e. across all tenants, not just one)
Verify that the new user gets added to the Registered Users group in Tenant A
Create a new tenant (e.g. Tenant B)
Navigate to Tenant B > Dashboard > Manage Users
Invite the same user from Step 4. Do not give it any individual roles in the invite form
Verify that the user gets added to the Registered Users group in Tenant B
Notes
The primary issue here is that invited users who already have an account (i.e. an instance of User in the database) were not being added to the tenant's Registered Users group. This meant that, if a user was invited with no specific roles, they simply wouldn't show up in the tenant at all.
Ref
cherry-pick
source)Story
Trying to add a user active in other repositories to another tenant does not return any error but does not add the user.
Changes proposed in this pull request:
Acceptance Criteria
Testing Instructions
Tenant A
)Tenant A
> Dashboard > Manage UsersTenant A
Tenant B
)Tenant B
> Dashboard > Manage UsersTenant B
Notes
The primary issue here is that invited users who already have an account (i.e. an instance of
User
in the database) were not being added to the tenant's Registered Users group. This meant that, if a user was invited with no specific roles, they simply wouldn't show up in the tenant at all.