continueops_sso_group_mapping (Resource)
Gives people in an IdP group a tenant role when they sign in through a continueops_sso_connection. The group is read from the connection's groups_attribute, so set that on the connection. People in no mapped group get the connection's default_role.
This decides the tenant role (member or admin). What people may do with runbooks is decided by continueops_rbac_binding. Every attribute can be changed in place.
Example Usage
# People in this IdP group become tenant admins when they sign in. For Entra
# ID, the group's object id (Entra sends object ids, not names, by default).
data "azuread_group" "platform_admins" {
display_name = "CO-Platform-Admins"
security_enabled = true
}
resource "continueops_sso_group_mapping" "platform_admins" {
connection_id = continueops_sso_connection.entra.id
external_group = data.azuread_group.platform_admins.object_id
tenant_role = "admin"
}Entra ID
Entra ID sends group object ids, not names, unless the group claim is configured otherwise (see continueops_sso_connection). Use the object id, typically from the azuread_group data source, as above. Matching ignores case.
Only groups the person is a direct member of, and that are assigned to the ContinueOps enterprise application, are sent when the claim is set to "Groups assigned to the application". Assign every group you map here, and every group you use in continueops_rbac_binding.
To map app roles instead, set the connection's groups_attribute to http://schemas.microsoft.com/ws/2008/06/identity/claims/role and use the role's value (for example ContinueOps.Admin) as external_group.
Schema
Required
connection_id(String) Id of thecontinueops_sso_connection.external_group(String) The group as the IdP sends it (a name such asCO-Platform-Admins, or an object id for Entra ID). Compared case-insensitively.tenant_role(String) Tenant role given to members of the group:memberoradmin.
Optional
timeouts(Attributes) (see below for nested schema)
Read-Only
created_at(String) When the mapping was created (RFC 3339, UTC).created_by(String) User id of whoever created it (the API key's owner).id(String) Mapping id (UUID).tenant_id(String) Id of the tenant (UUID).
Nested Schema for timeouts
Optional:
create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).delete(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.read(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.update(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Import is supported using the following syntax:
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
import {
to = continueops_sso_group_mapping.example
id = "00000000-0000-4000-8000-000000000000"
}The terraform import command can be used, for example:
# Import by id (UUID).
terraform import continueops_sso_group_mapping.example 00000000-0000-4000-8000-000000000000