Open chathsuom opened 2 years ago
It actually works with providing "" for space_id.
resource "octopusdeploy_scoped_user_role" "system_admin" {
space_id = ""
team_id = module.teams["system_admin"].id
user_role_id = data.octopusdeploy_user_roles.system_admin.user_roles[0].id
}
This does not feel very nice @jbristowe @slewis74 It would be nice to maybe have specific resources for system vs space, thoughts?
I'm having a similar problem but the other way around. I'm trying to assign a Space-scoped user role with the team inline data block.
user_role {
space_id = data.octopusdeploy_space.space.id
user_role_id = "userroles-spacemanager"
}
I get the following error.
Error: error creating user role for team Teams-208: octopus deploy api returned an error on endpoint /api/scopeduserroles - [You cannot use a role without any Space level permissions at the Space level.
Another user seeing this issue (internal link) - https://octopus.zendesk.com/agent/tickets/200034
The workaround that @chathsuom posted up helped resolve the issue for them so thank you for posting that up so it helps others who have run into this!
Current Team User Roles and Scoped User Roles, only supported roles with space permissions. We would like to use user roles only with system permissions.