dataall
dataall copied to clipboard
Inviting Team to Organization Sliders Disabled
Describe the bug
When an organization admin is inviting a team to the organization there are 2 slides for Organization Permissions that the invite can define:
- 'Link environments to this organization' permissions
- 'Invite teams to this organization' permissions
Both of these sliders are enabled by default and are not editable.
When a team is invited to an org it has the permissions to link environments (1 above) but is not able to invite additional teams (2 above).
How to Reproduce
*P.S. Please do not attach files as it's considered a security risk. Add code snippets directly in the message body as much as possible.*
Expected behavior
No response
Your project
No response
Screenshots
No response
OS
N/A
Python version
N/A
AWS data.all version
1.4
Additional context
No response
Hi @noah-paige, this is the intended behavior. If a team is invited to the Organization it means that it can perform all actions at the Organization-level = link environments and invite other teams to the orga. To disable this permissions you just need to remove the team from the Organization.
Maybe the confusion came because the organization groups multiple environments and it can be assumed that "in order to work in environments I need to be invited to the organization" but that is NOT true. Any team can be invited to an environment without the need of it to be in the Organization-invited-teams.
We can work on UI enhancements to avoid this misunderstanding, so happy to hear your thoughts on how you would picture the whole user experience
Hi @dlpzx - the above makes sense to me but when I am testing locally and inviting another team to my Organization that invited team cannot then invite additional teams to the org.
Also, I think some confusion from my end is coming because on the frontend when I try to invite a team to my organization the sliders shown below are not editable and I am not seeing the second slider (Invite Teams) permission to be granted
Is this the designed behavior and/or are you able to reproduce what I am seeing?
The problem was in permission set: ORGANIZATION_INVITED = [LINK_ENVIRONMENT, GET_ORGANIZATION]
I added ORGANIZATION_INVITED = [LINK_ENVIRONMENT, GET_ORGANIZATION, REMOVE_ORGANIZATION_GROUP, INVITE_ORGANIZATION_GROUP]
PR is coming)