Configuring Custom Roles Claim Rule (Example)
Procedure
-
In the Add Transform Claim Rule Wizard, select
Send Claims Using a Custom Rule from the drop-down
list, then click Next.
- Enter a Claim rule name, for example, EmailAddress.
-
Enter the configuration to the Custom rule field.
c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"] => add(store = "Active Directory", types = ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"), query = ";mail;{0}", param = c.Value);
- Click Finish.
- In the Edit Claim Rules for... window, click Add Rule....
- Select Send Claims Using a Custom Rule from the drop-down list, then click Next.
- Enter a Claim rule name, for example, NameId.
-
Enter the configuration to the Custom rule field.
c:[Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"] => issue(Type = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier", Properties["http://schemas.xmlsoap.org/ws/2005/05/identity/claimproperties/format"] = "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", Value = c.Value);
- Click Finish.
- In the Edit Claim Rules for... window, click Add Rule....
- Select Send Claims Using a Custom Rule from the drop-down list, then click Next.
- Enter a Claim rule name, for example, Attributes.
-
Enter the configuration to the Custom rule field.
c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"] => issue(store = "Active Directory", types = ("given_name", "family_name"), query = ";givenName,sn;{0}", param = c.Value);
In this example, the given name and the family name are read from your Active Directory to define this Attributes claim rule.
- Click Finish.
- In the Edit Claim Rules for... window, click Add Rule....
- Select Send Claims Using a Custom Rule from the drop-down list, then click Next.
- Enter a Claim rule name, for example, TalendCloudDomainName.
-
Enter the configuration to the Custom rule field.
=> issue(Type = "TalendCloudDomainName", Value = "<Domain>");
In this example, <Domain> is the name to be used as TalendCloudDomainName, for example, tho.talend.com. This makes the value in this field read like=> issue(Type = "TalendCloudDomainName", Value = "tho.talend.com");
You can find the TalendCloudDomainName value to be used in the Domain field of the Subscription page of your Talend Management Console. - Click Finish.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!