keycloak.ldap.GroupMapper
Explore with Pulumi AI
# keycloak.ldap.GroupMapper
Allows for creating and managing group mappers for Keycloak users federated via LDAP.
The LDAP group mapper can be used to map an LDAP user’s groups from some DN to Keycloak groups. This group mapper will also create the groups within Keycloak if they do not already exist.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as keycloak from "@pulumi/keycloak";
const realm = new keycloak.Realm("realm", {
realm: "test",
enabled: true,
});
const ldapUserFederation = new keycloak.ldap.UserFederation("ldap_user_federation", {
name: "openldap",
realmId: realm.id,
usernameLdapAttribute: "cn",
rdnLdapAttribute: "cn",
uuidLdapAttribute: "entryDN",
userObjectClasses: [
"simpleSecurityObject",
"organizationalRole",
],
connectionUrl: "ldap://openldap",
usersDn: "dc=example,dc=org",
bindDn: "cn=admin,dc=example,dc=org",
bindCredential: "admin",
});
const ldapGroupMapper = new keycloak.ldap.GroupMapper("ldap_group_mapper", {
realmId: realm.id,
ldapUserFederationId: ldapUserFederation.id,
name: "group-mapper",
ldapGroupsDn: "dc=example,dc=org",
groupNameLdapAttribute: "cn",
groupObjectClasses: ["groupOfNames"],
membershipAttributeType: "DN",
membershipLdapAttribute: "member",
membershipUserLdapAttribute: "cn",
memberofLdapAttribute: "memberOf",
});
import pulumi
import pulumi_keycloak as keycloak
realm = keycloak.Realm("realm",
realm="test",
enabled=True)
ldap_user_federation = keycloak.ldap.UserFederation("ldap_user_federation",
name="openldap",
realm_id=realm.id,
username_ldap_attribute="cn",
rdn_ldap_attribute="cn",
uuid_ldap_attribute="entryDN",
user_object_classes=[
"simpleSecurityObject",
"organizationalRole",
],
connection_url="ldap://openldap",
users_dn="dc=example,dc=org",
bind_dn="cn=admin,dc=example,dc=org",
bind_credential="admin")
ldap_group_mapper = keycloak.ldap.GroupMapper("ldap_group_mapper",
realm_id=realm.id,
ldap_user_federation_id=ldap_user_federation.id,
name="group-mapper",
ldap_groups_dn="dc=example,dc=org",
group_name_ldap_attribute="cn",
group_object_classes=["groupOfNames"],
membership_attribute_type="DN",
membership_ldap_attribute="member",
membership_user_ldap_attribute="cn",
memberof_ldap_attribute="memberOf")
package main
import (
"github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak"
"github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak/ldap"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
realm, err := keycloak.NewRealm(ctx, "realm", &keycloak.RealmArgs{
Realm: pulumi.String("test"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
ldapUserFederation, err := ldap.NewUserFederation(ctx, "ldap_user_federation", &ldap.UserFederationArgs{
Name: pulumi.String("openldap"),
RealmId: realm.ID(),
UsernameLdapAttribute: pulumi.String("cn"),
RdnLdapAttribute: pulumi.String("cn"),
UuidLdapAttribute: pulumi.String("entryDN"),
UserObjectClasses: pulumi.StringArray{
pulumi.String("simpleSecurityObject"),
pulumi.String("organizationalRole"),
},
ConnectionUrl: pulumi.String("ldap://openldap"),
UsersDn: pulumi.String("dc=example,dc=org"),
BindDn: pulumi.String("cn=admin,dc=example,dc=org"),
BindCredential: pulumi.String("admin"),
})
if err != nil {
return err
}
_, err = ldap.NewGroupMapper(ctx, "ldap_group_mapper", &ldap.GroupMapperArgs{
RealmId: realm.ID(),
LdapUserFederationId: ldapUserFederation.ID(),
Name: pulumi.String("group-mapper"),
LdapGroupsDn: pulumi.String("dc=example,dc=org"),
GroupNameLdapAttribute: pulumi.String("cn"),
GroupObjectClasses: pulumi.StringArray{
pulumi.String("groupOfNames"),
},
MembershipAttributeType: pulumi.String("DN"),
MembershipLdapAttribute: pulumi.String("member"),
MembershipUserLdapAttribute: pulumi.String("cn"),
MemberofLdapAttribute: pulumi.String("memberOf"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Keycloak = Pulumi.Keycloak;
return await Deployment.RunAsync(() =>
{
var realm = new Keycloak.Realm("realm", new()
{
RealmName = "test",
Enabled = true,
});
var ldapUserFederation = new Keycloak.Ldap.UserFederation("ldap_user_federation", new()
{
Name = "openldap",
RealmId = realm.Id,
UsernameLdapAttribute = "cn",
RdnLdapAttribute = "cn",
UuidLdapAttribute = "entryDN",
UserObjectClasses = new[]
{
"simpleSecurityObject",
"organizationalRole",
},
ConnectionUrl = "ldap://openldap",
UsersDn = "dc=example,dc=org",
BindDn = "cn=admin,dc=example,dc=org",
BindCredential = "admin",
});
var ldapGroupMapper = new Keycloak.Ldap.GroupMapper("ldap_group_mapper", new()
{
RealmId = realm.Id,
LdapUserFederationId = ldapUserFederation.Id,
Name = "group-mapper",
LdapGroupsDn = "dc=example,dc=org",
GroupNameLdapAttribute = "cn",
GroupObjectClasses = new[]
{
"groupOfNames",
},
MembershipAttributeType = "DN",
MembershipLdapAttribute = "member",
MembershipUserLdapAttribute = "cn",
MemberofLdapAttribute = "memberOf",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.keycloak.Realm;
import com.pulumi.keycloak.RealmArgs;
import com.pulumi.keycloak.ldap.UserFederation;
import com.pulumi.keycloak.ldap.UserFederationArgs;
import com.pulumi.keycloak.ldap.GroupMapper;
import com.pulumi.keycloak.ldap.GroupMapperArgs;
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 realm = new Realm("realm", RealmArgs.builder()
.realm("test")
.enabled(true)
.build());
var ldapUserFederation = new UserFederation("ldapUserFederation", UserFederationArgs.builder()
.name("openldap")
.realmId(realm.id())
.usernameLdapAttribute("cn")
.rdnLdapAttribute("cn")
.uuidLdapAttribute("entryDN")
.userObjectClasses(
"simpleSecurityObject",
"organizationalRole")
.connectionUrl("ldap://openldap")
.usersDn("dc=example,dc=org")
.bindDn("cn=admin,dc=example,dc=org")
.bindCredential("admin")
.build());
var ldapGroupMapper = new GroupMapper("ldapGroupMapper", GroupMapperArgs.builder()
.realmId(realm.id())
.ldapUserFederationId(ldapUserFederation.id())
.name("group-mapper")
.ldapGroupsDn("dc=example,dc=org")
.groupNameLdapAttribute("cn")
.groupObjectClasses("groupOfNames")
.membershipAttributeType("DN")
.membershipLdapAttribute("member")
.membershipUserLdapAttribute("cn")
.memberofLdapAttribute("memberOf")
.build());
}
}
resources:
realm:
type: keycloak:Realm
properties:
realm: test
enabled: true
ldapUserFederation:
type: keycloak:ldap:UserFederation
name: ldap_user_federation
properties:
name: openldap
realmId: ${realm.id}
usernameLdapAttribute: cn
rdnLdapAttribute: cn
uuidLdapAttribute: entryDN
userObjectClasses:
- simpleSecurityObject
- organizationalRole
connectionUrl: ldap://openldap
usersDn: dc=example,dc=org
bindDn: cn=admin,dc=example,dc=org
bindCredential: admin
ldapGroupMapper:
type: keycloak:ldap:GroupMapper
name: ldap_group_mapper
properties:
realmId: ${realm.id}
ldapUserFederationId: ${ldapUserFederation.id}
name: group-mapper
ldapGroupsDn: dc=example,dc=org
groupNameLdapAttribute: cn
groupObjectClasses:
- groupOfNames
membershipAttributeType: DN
membershipLdapAttribute: member
membershipUserLdapAttribute: cn
memberofLdapAttribute: memberOf
Argument Reference
The following arguments are supported:
realm_id
- (Required) The realm that this LDAP mapper will exist in.ldap_user_federation_id
- (Required) The ID of the LDAP user federation provider to attach this mapper to.name
- (Required) Display name of this mapper when displayed in the console.ldap_groups_dn
- (Required) The LDAP DN where groups can be found.group_name_ldap_attribute
- (Required) The name of the LDAP attribute that is used in group objects for the name and RDN of the group. Typicallycn
.group_object_classes
- (Required) Array of strings representing the object classes for the group. Must contain at least one.preserve_group_inheritance
- (Optional) Whentrue
, group inheritance will be propagated from LDAP to Keycloak. Whenfalse
, all LDAP groups will be propagated as top level groups within Keycloak.ignore_missing_groups
- (Optional) Whentrue
, missing groups in the hierarchy will be ignored.membership_ldap_attribute
- (Required) The name of the LDAP attribute that is used for membership mappings.membership_attribute_type
- (Optional) Can be one ofDN
orUID
. Defaults toDN
.membership_user_ldap_attribute
- (Required) The name of the LDAP attribute on a user that is used for membership mappings.groups_ldap_filter
- (Optional) When specified, adds an additional custom filter to be used when querying for groups. Must start with(
and end with)
.mode
- (Optional) Can be one ofREAD_ONLY
orLDAP_ONLY
. Defaults toREAD_ONLY
.user_roles_retrieve_strategy
- (Optional) Can be one ofLOAD_GROUPS_BY_MEMBER_ATTRIBUTE
,GET_GROUPS_FROM_USER_MEMBEROF_ATTRIBUTE
, orLOAD_GROUPS_BY_MEMBER_ATTRIBUTE_RECURSIVELY
. Defaults toLOAD_GROUPS_BY_MEMBER_ATTRIBUTE
.memberof_ldap_attribute
- (Optional) Specifies the name of the LDAP attribute on the LDAP user that contains the groups the user is a member of. Defaults tomemberOf
.mapped_group_attributes
- (Optional) Array of strings representing attributes on the LDAP group which will be mapped to attributes on the Keycloak group.drop_non_existing_groups_during_sync
- (Optional) Whentrue
, groups that no longer exist within LDAP will be dropped in Keycloak during sync. Defaults tofalse
.
Import
LDAP mappers can be imported using the format {{realm_id}}/{{ldap_user_federation_id}}/{{ldap_mapper_id}}
.
The ID of the LDAP user federation provider and the mapper can be found within
the Keycloak GUI, and they are typically GUIDs:
$ terraform import keycloak_ldap_group_mapper.ldap_group_mapper my-realm/af2a6ca3-e4d7-49c3-b08b-1b3c70b4b860/3d923ece-1a91-4bf7-adaf-3b82f2a12b67
Create GroupMapper Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GroupMapper(name: string, args: GroupMapperArgs, opts?: CustomResourceOptions);
@overload
def GroupMapper(resource_name: str,
args: GroupMapperArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GroupMapper(resource_name: str,
opts: Optional[ResourceOptions] = None,
ldap_user_federation_id: Optional[str] = None,
group_name_ldap_attribute: Optional[str] = None,
group_object_classes: Optional[Sequence[str]] = None,
realm_id: Optional[str] = None,
membership_user_ldap_attribute: Optional[str] = None,
membership_ldap_attribute: Optional[str] = None,
ldap_groups_dn: Optional[str] = None,
groups_path: Optional[str] = None,
mapped_group_attributes: Optional[Sequence[str]] = None,
memberof_ldap_attribute: Optional[str] = None,
membership_attribute_type: Optional[str] = None,
ignore_missing_groups: Optional[bool] = None,
drop_non_existing_groups_during_sync: Optional[bool] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
preserve_group_inheritance: Optional[bool] = None,
groups_ldap_filter: Optional[str] = None,
user_roles_retrieve_strategy: Optional[str] = None)
func NewGroupMapper(ctx *Context, name string, args GroupMapperArgs, opts ...ResourceOption) (*GroupMapper, error)
public GroupMapper(string name, GroupMapperArgs args, CustomResourceOptions? opts = null)
public GroupMapper(String name, GroupMapperArgs args)
public GroupMapper(String name, GroupMapperArgs args, CustomResourceOptions options)
type: keycloak:ldap:GroupMapper
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GroupMapperArgs
- 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 GroupMapperArgs
- 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 GroupMapperArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupMapperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupMapperArgs
- 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 groupMapperResource = new Keycloak.Ldap.GroupMapper("groupMapperResource", new()
{
LdapUserFederationId = "string",
GroupNameLdapAttribute = "string",
GroupObjectClasses = new[]
{
"string",
},
RealmId = "string",
MembershipUserLdapAttribute = "string",
MembershipLdapAttribute = "string",
LdapGroupsDn = "string",
GroupsPath = "string",
MappedGroupAttributes = new[]
{
"string",
},
MemberofLdapAttribute = "string",
MembershipAttributeType = "string",
IgnoreMissingGroups = false,
DropNonExistingGroupsDuringSync = false,
Mode = "string",
Name = "string",
PreserveGroupInheritance = false,
GroupsLdapFilter = "string",
UserRolesRetrieveStrategy = "string",
});
example, err := ldap.NewGroupMapper(ctx, "groupMapperResource", &ldap.GroupMapperArgs{
LdapUserFederationId: pulumi.String("string"),
GroupNameLdapAttribute: pulumi.String("string"),
GroupObjectClasses: pulumi.StringArray{
pulumi.String("string"),
},
RealmId: pulumi.String("string"),
MembershipUserLdapAttribute: pulumi.String("string"),
MembershipLdapAttribute: pulumi.String("string"),
LdapGroupsDn: pulumi.String("string"),
GroupsPath: pulumi.String("string"),
MappedGroupAttributes: pulumi.StringArray{
pulumi.String("string"),
},
MemberofLdapAttribute: pulumi.String("string"),
MembershipAttributeType: pulumi.String("string"),
IgnoreMissingGroups: pulumi.Bool(false),
DropNonExistingGroupsDuringSync: pulumi.Bool(false),
Mode: pulumi.String("string"),
Name: pulumi.String("string"),
PreserveGroupInheritance: pulumi.Bool(false),
GroupsLdapFilter: pulumi.String("string"),
UserRolesRetrieveStrategy: pulumi.String("string"),
})
var groupMapperResource = new GroupMapper("groupMapperResource", GroupMapperArgs.builder()
.ldapUserFederationId("string")
.groupNameLdapAttribute("string")
.groupObjectClasses("string")
.realmId("string")
.membershipUserLdapAttribute("string")
.membershipLdapAttribute("string")
.ldapGroupsDn("string")
.groupsPath("string")
.mappedGroupAttributes("string")
.memberofLdapAttribute("string")
.membershipAttributeType("string")
.ignoreMissingGroups(false)
.dropNonExistingGroupsDuringSync(false)
.mode("string")
.name("string")
.preserveGroupInheritance(false)
.groupsLdapFilter("string")
.userRolesRetrieveStrategy("string")
.build());
group_mapper_resource = keycloak.ldap.GroupMapper("groupMapperResource",
ldap_user_federation_id="string",
group_name_ldap_attribute="string",
group_object_classes=["string"],
realm_id="string",
membership_user_ldap_attribute="string",
membership_ldap_attribute="string",
ldap_groups_dn="string",
groups_path="string",
mapped_group_attributes=["string"],
memberof_ldap_attribute="string",
membership_attribute_type="string",
ignore_missing_groups=False,
drop_non_existing_groups_during_sync=False,
mode="string",
name="string",
preserve_group_inheritance=False,
groups_ldap_filter="string",
user_roles_retrieve_strategy="string")
const groupMapperResource = new keycloak.ldap.GroupMapper("groupMapperResource", {
ldapUserFederationId: "string",
groupNameLdapAttribute: "string",
groupObjectClasses: ["string"],
realmId: "string",
membershipUserLdapAttribute: "string",
membershipLdapAttribute: "string",
ldapGroupsDn: "string",
groupsPath: "string",
mappedGroupAttributes: ["string"],
memberofLdapAttribute: "string",
membershipAttributeType: "string",
ignoreMissingGroups: false,
dropNonExistingGroupsDuringSync: false,
mode: "string",
name: "string",
preserveGroupInheritance: false,
groupsLdapFilter: "string",
userRolesRetrieveStrategy: "string",
});
type: keycloak:ldap:GroupMapper
properties:
dropNonExistingGroupsDuringSync: false
groupNameLdapAttribute: string
groupObjectClasses:
- string
groupsLdapFilter: string
groupsPath: string
ignoreMissingGroups: false
ldapGroupsDn: string
ldapUserFederationId: string
mappedGroupAttributes:
- string
memberofLdapAttribute: string
membershipAttributeType: string
membershipLdapAttribute: string
membershipUserLdapAttribute: string
mode: string
name: string
preserveGroupInheritance: false
realmId: string
userRolesRetrieveStrategy: string
GroupMapper 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 GroupMapper resource accepts the following input properties:
- Group
Name stringLdap Attribute - Group
Object List<string>Classes - Ldap
Groups stringDn - Ldap
User stringFederation Id - The ldap user federation provider to attach this mapper to.
- Membership
Ldap stringAttribute - Membership
User stringLdap Attribute - Realm
Id string - The realm in which the ldap user federation provider exists.
- Drop
Non boolExisting Groups During Sync - Groups
Ldap stringFilter - Groups
Path string - Ignore
Missing boolGroups - Mapped
Group List<string>Attributes - Memberof
Ldap stringAttribute - Membership
Attribute stringType - Mode string
- Name string
- Display name of the mapper when displayed in the console.
- Preserve
Group boolInheritance - User
Roles stringRetrieve Strategy
- Group
Name stringLdap Attribute - Group
Object []stringClasses - Ldap
Groups stringDn - Ldap
User stringFederation Id - The ldap user federation provider to attach this mapper to.
- Membership
Ldap stringAttribute - Membership
User stringLdap Attribute - Realm
Id string - The realm in which the ldap user federation provider exists.
- Drop
Non boolExisting Groups During Sync - Groups
Ldap stringFilter - Groups
Path string - Ignore
Missing boolGroups - Mapped
Group []stringAttributes - Memberof
Ldap stringAttribute - Membership
Attribute stringType - Mode string
- Name string
- Display name of the mapper when displayed in the console.
- Preserve
Group boolInheritance - User
Roles stringRetrieve Strategy
- group
Name StringLdap Attribute - group
Object List<String>Classes - ldap
Groups StringDn - ldap
User StringFederation Id - The ldap user federation provider to attach this mapper to.
- membership
Ldap StringAttribute - membership
User StringLdap Attribute - realm
Id String - The realm in which the ldap user federation provider exists.
- drop
Non BooleanExisting Groups During Sync - groups
Ldap StringFilter - groups
Path String - ignore
Missing BooleanGroups - mapped
Group List<String>Attributes - memberof
Ldap StringAttribute - membership
Attribute StringType - mode String
- name String
- Display name of the mapper when displayed in the console.
- preserve
Group BooleanInheritance - user
Roles StringRetrieve Strategy
- group
Name stringLdap Attribute - group
Object string[]Classes - ldap
Groups stringDn - ldap
User stringFederation Id - The ldap user federation provider to attach this mapper to.
- membership
Ldap stringAttribute - membership
User stringLdap Attribute - realm
Id string - The realm in which the ldap user federation provider exists.
- drop
Non booleanExisting Groups During Sync - groups
Ldap stringFilter - groups
Path string - ignore
Missing booleanGroups - mapped
Group string[]Attributes - memberof
Ldap stringAttribute - membership
Attribute stringType - mode string
- name string
- Display name of the mapper when displayed in the console.
- preserve
Group booleanInheritance - user
Roles stringRetrieve Strategy
- group_
name_ strldap_ attribute - group_
object_ Sequence[str]classes - ldap_
groups_ strdn - ldap_
user_ strfederation_ id - The ldap user federation provider to attach this mapper to.
- membership_
ldap_ strattribute - membership_
user_ strldap_ attribute - realm_
id str - The realm in which the ldap user federation provider exists.
- drop_
non_ boolexisting_ groups_ during_ sync - groups_
ldap_ strfilter - groups_
path str - ignore_
missing_ boolgroups - mapped_
group_ Sequence[str]attributes - memberof_
ldap_ strattribute - membership_
attribute_ strtype - mode str
- name str
- Display name of the mapper when displayed in the console.
- preserve_
group_ boolinheritance - user_
roles_ strretrieve_ strategy
- group
Name StringLdap Attribute - group
Object List<String>Classes - ldap
Groups StringDn - ldap
User StringFederation Id - The ldap user federation provider to attach this mapper to.
- membership
Ldap StringAttribute - membership
User StringLdap Attribute - realm
Id String - The realm in which the ldap user federation provider exists.
- drop
Non BooleanExisting Groups During Sync - groups
Ldap StringFilter - groups
Path String - ignore
Missing BooleanGroups - mapped
Group List<String>Attributes - memberof
Ldap StringAttribute - membership
Attribute StringType - mode String
- name String
- Display name of the mapper when displayed in the console.
- preserve
Group BooleanInheritance - user
Roles StringRetrieve Strategy
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupMapper 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GroupMapper Resource
Get an existing GroupMapper 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?: GroupMapperState, opts?: CustomResourceOptions): GroupMapper
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
drop_non_existing_groups_during_sync: Optional[bool] = None,
group_name_ldap_attribute: Optional[str] = None,
group_object_classes: Optional[Sequence[str]] = None,
groups_ldap_filter: Optional[str] = None,
groups_path: Optional[str] = None,
ignore_missing_groups: Optional[bool] = None,
ldap_groups_dn: Optional[str] = None,
ldap_user_federation_id: Optional[str] = None,
mapped_group_attributes: Optional[Sequence[str]] = None,
memberof_ldap_attribute: Optional[str] = None,
membership_attribute_type: Optional[str] = None,
membership_ldap_attribute: Optional[str] = None,
membership_user_ldap_attribute: Optional[str] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
preserve_group_inheritance: Optional[bool] = None,
realm_id: Optional[str] = None,
user_roles_retrieve_strategy: Optional[str] = None) -> GroupMapper
func GetGroupMapper(ctx *Context, name string, id IDInput, state *GroupMapperState, opts ...ResourceOption) (*GroupMapper, error)
public static GroupMapper Get(string name, Input<string> id, GroupMapperState? state, CustomResourceOptions? opts = null)
public static GroupMapper get(String name, Output<String> id, GroupMapperState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Drop
Non boolExisting Groups During Sync - Group
Name stringLdap Attribute - Group
Object List<string>Classes - Groups
Ldap stringFilter - Groups
Path string - Ignore
Missing boolGroups - Ldap
Groups stringDn - Ldap
User stringFederation Id - The ldap user federation provider to attach this mapper to.
- Mapped
Group List<string>Attributes - Memberof
Ldap stringAttribute - Membership
Attribute stringType - Membership
Ldap stringAttribute - Membership
User stringLdap Attribute - Mode string
- Name string
- Display name of the mapper when displayed in the console.
- Preserve
Group boolInheritance - Realm
Id string - The realm in which the ldap user federation provider exists.
- User
Roles stringRetrieve Strategy
- Drop
Non boolExisting Groups During Sync - Group
Name stringLdap Attribute - Group
Object []stringClasses - Groups
Ldap stringFilter - Groups
Path string - Ignore
Missing boolGroups - Ldap
Groups stringDn - Ldap
User stringFederation Id - The ldap user federation provider to attach this mapper to.
- Mapped
Group []stringAttributes - Memberof
Ldap stringAttribute - Membership
Attribute stringType - Membership
Ldap stringAttribute - Membership
User stringLdap Attribute - Mode string
- Name string
- Display name of the mapper when displayed in the console.
- Preserve
Group boolInheritance - Realm
Id string - The realm in which the ldap user federation provider exists.
- User
Roles stringRetrieve Strategy
- drop
Non BooleanExisting Groups During Sync - group
Name StringLdap Attribute - group
Object List<String>Classes - groups
Ldap StringFilter - groups
Path String - ignore
Missing BooleanGroups - ldap
Groups StringDn - ldap
User StringFederation Id - The ldap user federation provider to attach this mapper to.
- mapped
Group List<String>Attributes - memberof
Ldap StringAttribute - membership
Attribute StringType - membership
Ldap StringAttribute - membership
User StringLdap Attribute - mode String
- name String
- Display name of the mapper when displayed in the console.
- preserve
Group BooleanInheritance - realm
Id String - The realm in which the ldap user federation provider exists.
- user
Roles StringRetrieve Strategy
- drop
Non booleanExisting Groups During Sync - group
Name stringLdap Attribute - group
Object string[]Classes - groups
Ldap stringFilter - groups
Path string - ignore
Missing booleanGroups - ldap
Groups stringDn - ldap
User stringFederation Id - The ldap user federation provider to attach this mapper to.
- mapped
Group string[]Attributes - memberof
Ldap stringAttribute - membership
Attribute stringType - membership
Ldap stringAttribute - membership
User stringLdap Attribute - mode string
- name string
- Display name of the mapper when displayed in the console.
- preserve
Group booleanInheritance - realm
Id string - The realm in which the ldap user federation provider exists.
- user
Roles stringRetrieve Strategy
- drop_
non_ boolexisting_ groups_ during_ sync - group_
name_ strldap_ attribute - group_
object_ Sequence[str]classes - groups_
ldap_ strfilter - groups_
path str - ignore_
missing_ boolgroups - ldap_
groups_ strdn - ldap_
user_ strfederation_ id - The ldap user federation provider to attach this mapper to.
- mapped_
group_ Sequence[str]attributes - memberof_
ldap_ strattribute - membership_
attribute_ strtype - membership_
ldap_ strattribute - membership_
user_ strldap_ attribute - mode str
- name str
- Display name of the mapper when displayed in the console.
- preserve_
group_ boolinheritance - realm_
id str - The realm in which the ldap user federation provider exists.
- user_
roles_ strretrieve_ strategy
- drop
Non BooleanExisting Groups During Sync - group
Name StringLdap Attribute - group
Object List<String>Classes - groups
Ldap StringFilter - groups
Path String - ignore
Missing BooleanGroups - ldap
Groups StringDn - ldap
User StringFederation Id - The ldap user federation provider to attach this mapper to.
- mapped
Group List<String>Attributes - memberof
Ldap StringAttribute - membership
Attribute StringType - membership
Ldap StringAttribute - membership
User StringLdap Attribute - mode String
- name String
- Display name of the mapper when displayed in the console.
- preserve
Group BooleanInheritance - realm
Id String - The realm in which the ldap user federation provider exists.
- user
Roles StringRetrieve Strategy
Package Details
- Repository
- Keycloak pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloak
Terraform Provider.