published on Tuesday, May 19, 2026 by selectel
published on Tuesday, May 19, 2026 by selectel
Manages SAML federation group mappings for Selectel products using public API v1. Selectel products support Identity and Access Management (IAM). For more information about group mappings, see the official Selectel documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const group1 = new selectel.IamGroupV1("group_1", {
name: "example-group",
roles: [{
roleName: "reader",
scope: "account",
}],
});
const federation1 = new selectel.IamSamlFederationV1("federation_1", {
name: "Federation name",
description: "Federation description",
issuer: "https://idp.example.com/realms/master",
ssoUrl: "https://idp.example.com/realms/master/protocol/saml",
sessionMaxAgeHours: 24,
});
const groupMappings1 = new selectel.IamSamlFederationGroupMappingsV1("group_mappings_1", {
federationId: federation1.iamSamlFederationV1Id,
groupMappings: [{
internalGroupId: group1.iamGroupV1Id,
externalGroupId: "external-group-1",
}],
});
import pulumi
import pulumi_selectel as selectel
group1 = selectel.IamGroupV1("group_1",
name="example-group",
roles=[{
"role_name": "reader",
"scope": "account",
}])
federation1 = selectel.IamSamlFederationV1("federation_1",
name="Federation name",
description="Federation description",
issuer="https://idp.example.com/realms/master",
sso_url="https://idp.example.com/realms/master/protocol/saml",
session_max_age_hours=24)
group_mappings1 = selectel.IamSamlFederationGroupMappingsV1("group_mappings_1",
federation_id=federation1.iam_saml_federation_v1_id,
group_mappings=[{
"internal_group_id": group1.iam_group_v1_id,
"external_group_id": "external-group-1",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v7/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
group1, err := selectel.NewIamGroupV1(ctx, "group_1", &selectel.IamGroupV1Args{
Name: pulumi.String("example-group"),
Roles: selectel.IamGroupV1RoleArray{
&selectel.IamGroupV1RoleArgs{
RoleName: pulumi.String("reader"),
Scope: pulumi.String("account"),
},
},
})
if err != nil {
return err
}
federation1, err := selectel.NewIamSamlFederationV1(ctx, "federation_1", &selectel.IamSamlFederationV1Args{
Name: pulumi.String("Federation name"),
Description: pulumi.String("Federation description"),
Issuer: pulumi.String("https://idp.example.com/realms/master"),
SsoUrl: pulumi.String("https://idp.example.com/realms/master/protocol/saml"),
SessionMaxAgeHours: pulumi.Float64(24),
})
if err != nil {
return err
}
_, err = selectel.NewIamSamlFederationGroupMappingsV1(ctx, "group_mappings_1", &selectel.IamSamlFederationGroupMappingsV1Args{
FederationId: federation1.IamSamlFederationV1Id,
GroupMappings: selectel.IamSamlFederationGroupMappingsV1GroupMappingArray{
&selectel.IamSamlFederationGroupMappingsV1GroupMappingArgs{
InternalGroupId: group1.IamGroupV1Id,
ExternalGroupId: pulumi.String("external-group-1"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var group1 = new Selectel.IamGroupV1("group_1", new()
{
Name = "example-group",
Roles = new[]
{
new Selectel.Inputs.IamGroupV1RoleArgs
{
RoleName = "reader",
Scope = "account",
},
},
});
var federation1 = new Selectel.IamSamlFederationV1("federation_1", new()
{
Name = "Federation name",
Description = "Federation description",
Issuer = "https://idp.example.com/realms/master",
SsoUrl = "https://idp.example.com/realms/master/protocol/saml",
SessionMaxAgeHours = 24,
});
var groupMappings1 = new Selectel.IamSamlFederationGroupMappingsV1("group_mappings_1", new()
{
FederationId = federation1.IamSamlFederationV1Id,
GroupMappings = new[]
{
new Selectel.Inputs.IamSamlFederationGroupMappingsV1GroupMappingArgs
{
InternalGroupId = group1.IamGroupV1Id,
ExternalGroupId = "external-group-1",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.IamGroupV1;
import com.pulumi.selectel.IamGroupV1Args;
import com.pulumi.selectel.inputs.IamGroupV1RoleArgs;
import com.pulumi.selectel.IamSamlFederationV1;
import com.pulumi.selectel.IamSamlFederationV1Args;
import com.pulumi.selectel.IamSamlFederationGroupMappingsV1;
import com.pulumi.selectel.IamSamlFederationGroupMappingsV1Args;
import com.pulumi.selectel.inputs.IamSamlFederationGroupMappingsV1GroupMappingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var group1 = new IamGroupV1("group1", IamGroupV1Args.builder()
.name("example-group")
.roles(IamGroupV1RoleArgs.builder()
.roleName("reader")
.scope("account")
.build())
.build());
var federation1 = new IamSamlFederationV1("federation1", IamSamlFederationV1Args.builder()
.name("Federation name")
.description("Federation description")
.issuer("https://idp.example.com/realms/master")
.ssoUrl("https://idp.example.com/realms/master/protocol/saml")
.sessionMaxAgeHours(24.0)
.build());
var groupMappings1 = new IamSamlFederationGroupMappingsV1("groupMappings1", IamSamlFederationGroupMappingsV1Args.builder()
.federationId(federation1.iamSamlFederationV1Id())
.groupMappings(IamSamlFederationGroupMappingsV1GroupMappingArgs.builder()
.internalGroupId(group1.iamGroupV1Id())
.externalGroupId("external-group-1")
.build())
.build());
}
}
resources:
group1:
type: selectel:IamGroupV1
name: group_1
properties:
name: example-group
roles:
- roleName: reader
scope: account
federation1:
type: selectel:IamSamlFederationV1
name: federation_1
properties:
name: Federation name
description: Federation description
issuer: https://idp.example.com/realms/master
ssoUrl: https://idp.example.com/realms/master/protocol/saml
sessionMaxAgeHours: 24
groupMappings1:
type: selectel:IamSamlFederationGroupMappingsV1
name: group_mappings_1
properties:
federationId: ${federation1.iamSamlFederationV1Id}
groupMappings:
- internalGroupId: ${group1.iamGroupV1Id}
externalGroupId: external-group-1
Example coming soon!
Create IamSamlFederationGroupMappingsV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamSamlFederationGroupMappingsV1(name: string, args: IamSamlFederationGroupMappingsV1Args, opts?: CustomResourceOptions);@overload
def IamSamlFederationGroupMappingsV1(resource_name: str,
args: IamSamlFederationGroupMappingsV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def IamSamlFederationGroupMappingsV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
federation_id: Optional[str] = None,
group_mappings: Optional[Sequence[IamSamlFederationGroupMappingsV1GroupMappingArgs]] = None,
iam_saml_federation_group_mappings_v1_id: Optional[str] = None)func NewIamSamlFederationGroupMappingsV1(ctx *Context, name string, args IamSamlFederationGroupMappingsV1Args, opts ...ResourceOption) (*IamSamlFederationGroupMappingsV1, error)public IamSamlFederationGroupMappingsV1(string name, IamSamlFederationGroupMappingsV1Args args, CustomResourceOptions? opts = null)
public IamSamlFederationGroupMappingsV1(String name, IamSamlFederationGroupMappingsV1Args args)
public IamSamlFederationGroupMappingsV1(String name, IamSamlFederationGroupMappingsV1Args args, CustomResourceOptions options)
type: selectel:IamSamlFederationGroupMappingsV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "selectel_iamsamlfederationgroupmappingsv1" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args IamSamlFederationGroupMappingsV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IamSamlFederationGroupMappingsV1Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IamSamlFederationGroupMappingsV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamSamlFederationGroupMappingsV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamSamlFederationGroupMappingsV1Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var iamSamlFederationGroupMappingsV1Resource = new Selectel.IamSamlFederationGroupMappingsV1("iamSamlFederationGroupMappingsV1Resource", new()
{
FederationId = "string",
GroupMappings = new[]
{
new Selectel.Inputs.IamSamlFederationGroupMappingsV1GroupMappingArgs
{
ExternalGroupId = "string",
InternalGroupId = "string",
},
},
IamSamlFederationGroupMappingsV1Id = "string",
});
example, err := selectel.NewIamSamlFederationGroupMappingsV1(ctx, "iamSamlFederationGroupMappingsV1Resource", &selectel.IamSamlFederationGroupMappingsV1Args{
FederationId: pulumi.String("string"),
GroupMappings: selectel.IamSamlFederationGroupMappingsV1GroupMappingArray{
&selectel.IamSamlFederationGroupMappingsV1GroupMappingArgs{
ExternalGroupId: pulumi.String("string"),
InternalGroupId: pulumi.String("string"),
},
},
IamSamlFederationGroupMappingsV1Id: pulumi.String("string"),
})
resource "selectel_iamsamlfederationgroupmappingsv1" "iamSamlFederationGroupMappingsV1Resource" {
federation_id = "string"
group_mappings {
external_group_id = "string"
internal_group_id = "string"
}
iam_saml_federation_group_mappings_v1_id = "string"
}
var iamSamlFederationGroupMappingsV1Resource = new IamSamlFederationGroupMappingsV1("iamSamlFederationGroupMappingsV1Resource", IamSamlFederationGroupMappingsV1Args.builder()
.federationId("string")
.groupMappings(IamSamlFederationGroupMappingsV1GroupMappingArgs.builder()
.externalGroupId("string")
.internalGroupId("string")
.build())
.iamSamlFederationGroupMappingsV1Id("string")
.build());
iam_saml_federation_group_mappings_v1_resource = selectel.IamSamlFederationGroupMappingsV1("iamSamlFederationGroupMappingsV1Resource",
federation_id="string",
group_mappings=[{
"external_group_id": "string",
"internal_group_id": "string",
}],
iam_saml_federation_group_mappings_v1_id="string")
const iamSamlFederationGroupMappingsV1Resource = new selectel.IamSamlFederationGroupMappingsV1("iamSamlFederationGroupMappingsV1Resource", {
federationId: "string",
groupMappings: [{
externalGroupId: "string",
internalGroupId: "string",
}],
iamSamlFederationGroupMappingsV1Id: "string",
});
type: selectel:IamSamlFederationGroupMappingsV1
properties:
federationId: string
groupMappings:
- externalGroupId: string
internalGroupId: string
iamSamlFederationGroupMappingsV1Id: string
IamSamlFederationGroupMappingsV1 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IamSamlFederationGroupMappingsV1 resource accepts the following input properties:
- Federation
Id string - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - Group
Mappings List<IamSaml Federation Group Mappings V1Group Mapping> - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- Iam
Saml stringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
- Federation
Id string - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - Group
Mappings []IamSaml Federation Group Mappings V1Group Mapping Args - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- Iam
Saml stringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
- federation_
id string - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group_
mappings list(object) - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam_
saml_ stringfederation_ group_ mappings_ v1_ id - Resource ID. Equals the
federation_idvalue.
- federation
Id String - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group
Mappings List<IamSaml Federation Group Mappings V1Group Mapping> - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam
Saml StringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
- federation
Id string - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group
Mappings IamSaml Federation Group Mappings V1Group Mapping[] - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam
Saml stringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
- federation_
id str - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group_
mappings Sequence[IamSaml Federation Group Mappings V1Group Mapping Args] - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam_
saml_ strfederation_ group_ mappings_ v1_ id - Resource ID. Equals the
federation_idvalue.
- federation
Id String - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group
Mappings List<Property Map> - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam
Saml StringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
Outputs
All input properties are implicitly available as output properties. Additionally, the IamSamlFederationGroupMappingsV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing IamSamlFederationGroupMappingsV1 Resource
Get an existing IamSamlFederationGroupMappingsV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IamSamlFederationGroupMappingsV1State, opts?: CustomResourceOptions): IamSamlFederationGroupMappingsV1@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
federation_id: Optional[str] = None,
group_mappings: Optional[Sequence[IamSamlFederationGroupMappingsV1GroupMappingArgs]] = None,
iam_saml_federation_group_mappings_v1_id: Optional[str] = None) -> IamSamlFederationGroupMappingsV1func GetIamSamlFederationGroupMappingsV1(ctx *Context, name string, id IDInput, state *IamSamlFederationGroupMappingsV1State, opts ...ResourceOption) (*IamSamlFederationGroupMappingsV1, error)public static IamSamlFederationGroupMappingsV1 Get(string name, Input<string> id, IamSamlFederationGroupMappingsV1State? state, CustomResourceOptions? opts = null)public static IamSamlFederationGroupMappingsV1 get(String name, Output<String> id, IamSamlFederationGroupMappingsV1State state, CustomResourceOptions options)resources: _: type: selectel:IamSamlFederationGroupMappingsV1 get: id: ${id}import {
to = selectel_iamsamlfederationgroupmappingsv1.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Federation
Id string - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - Group
Mappings List<IamSaml Federation Group Mappings V1Group Mapping> - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- Iam
Saml stringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
- Federation
Id string - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - Group
Mappings []IamSaml Federation Group Mappings V1Group Mapping Args - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- Iam
Saml stringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
- federation_
id string - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group_
mappings list(object) - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam_
saml_ stringfederation_ group_ mappings_ v1_ id - Resource ID. Equals the
federation_idvalue.
- federation
Id String - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group
Mappings List<IamSaml Federation Group Mappings V1Group Mapping> - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam
Saml StringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
- federation
Id string - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group
Mappings IamSaml Federation Group Mappings V1Group Mapping[] - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam
Saml stringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
- federation_
id str - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group_
mappings Sequence[IamSaml Federation Group Mappings V1Group Mapping Args] - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam_
saml_ strfederation_ group_ mappings_ v1_ id - Resource ID. Equals the
federation_idvalue.
- federation
Id String - Unique identifier of the federation, for example,
abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name. - group
Mappings List<Property Map> - Defines mappings between internal IAM groups and external identity provider groups. You can add multiple mappings – each mapping in a separate block.
- iam
Saml StringFederation Group Mappings V1Id - Resource ID. Equals the
federation_idvalue.
Supporting Types
IamSamlFederationGroupMappingsV1GroupMapping, IamSamlFederationGroupMappingsV1GroupMappingArgs
- External
Group stringId - External identity provider group ID.
- Internal
Group stringId - Internal IAM group ID.
- External
Group stringId - External identity provider group ID.
- Internal
Group stringId - Internal IAM group ID.
- external_
group_ stringid - External identity provider group ID.
- internal_
group_ stringid - Internal IAM group ID.
- external
Group StringId - External identity provider group ID.
- internal
Group StringId - Internal IAM group ID.
- external
Group stringId - External identity provider group ID.
- internal
Group stringId - Internal IAM group ID.
- external_
group_ strid - External identity provider group ID.
- internal_
group_ strid - Internal IAM group ID.
- external
Group StringId - External identity provider group ID.
- internal
Group StringId - Internal IAM group ID.
Import
You can import SAML Federation group mappings:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=
export OS_PASSWORD=
$ pulumi import selectel:index/iamSamlFederationGroupMappingsV1:IamSamlFederationGroupMappingsV1 group_mappings_1 <federation_id>
where:
<account_id>— Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.<username>— Name of the service user. To get the name, in the Control panel, go to Account ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service Users.<password>— Password of the service user.<federation_id>— Unique identifier of the federation, for example,abc1bb378ac84e1234b869b77aadd2ab. To get the federation ID, in the Control Panel, go to Account → Federations → copy the ID under the federation name.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
published on Tuesday, May 19, 2026 by selectel