question

AralelemathMaheshCognizant-1711 avatar image
1 Vote"
AralelemathMaheshCognizant-1711 asked LucasPhelps-1061 commented

Azure AD SAML Transformation

Hi,
We are in process of migrating application SSO from on-prem ADFS to Azure AD SSO.
One of the application in ADFS is configured with claim Transformation rule to concatenated specific string with Employee id.

Ex: Deptname+Emp ID

In Azure AD could not find any similar claim Transformation rule to migrate the application from ADFS.

Pls suggest if any alternate or feasible solution to integrate the application with Azure AD.

Regards
Mahesh

adfsazure-ad-saml-sso
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AralelemathMaheshCognizant-1711

I just wanted to check in and see if you had any other questions or if you were able to resolve this issue?

If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.


Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

1 Vote 1 ·
shashishailaj avatar image
2 Votes"
shashishailaj answered AralelemathMaheshCognizant-1711 commented

@AralelemathMaheshCognizant-1711 ,

You should be able to setup the claims transformation for a SAML app. As you have mentioned that your app is a SAML application and you would like to migrate it from ADFS to Azure AD SSO . I am assuming that you are not modifying the application code to support oAuth/OpenID connect with azure AD but rather want to use SAML with Azure AD . If the application is a custom LOB application you should be able to integrate it using SAML through the portal as below . You can read more about claim customization in the customize app SAML token claims article in the adding application specific claims section .
64054-image.png
64082-image.png

As you have mentioned that you already have tried finding the claim transformation , I am assuming you already have an app registered using the Enterprise application blade in Azure AD through the portal .

64057-image.png

You can add a new claim using the Add new claim option and you will see the transformation option in the source section here . I have used hyphen as a separator with Join options as per your requirement .


64083-image.png
64084-image.png
64039-image.png

In order for this to work the users employee ID and department fields must be populated . So you would need to check your sync engine (AD connect sync rules) that they allow the syncing of department and EmployeeID attribute to Azure AD from your on-premise environment . Once you have setup the transformation it will be seen as below.

64094-image.png

As per the comments in case you would like to provide department name as a constant value like "sales" etc. and without any separator then you can use the option like below. here you can type the department name explicitly as well as shown in parameter 1 for below screenshot and ignore the optional separator field. .

64605-image.png
64611-image.png

Once the claims are set , they would be returned in the token like below.

64596-image.png

Thus the details could be returned. I hope this helps. You can add the users to the application for it to function for the users. Hope the information provided was helpful. Should this answer be helpful , please do accept this as answer so that the relevancy of the answer improves and it helps other members of the community with similar questions. In case you still have any further queries or if you feel we may have misunderstood your scenario , please provide more details about the application and the error details screenshot and we will surely help you further. I would strongly recommend you to go through the linked articles and they should also provide you more clarity on this matter.

Thank you .



image.png (35.3 KiB)
image.png (28.5 KiB)
image.png (10.5 KiB)
image.png (36.6 KiB)
image.png (15.0 KiB)
image.png (14.5 KiB)
image.png (51.3 KiB)
image.png (104.6 KiB)
image.png (29.4 KiB)
image.png (92.8 KiB)
image.png (12.2 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Shashi,
Thanks for the detailed explanation and effort put it.
However this is slightly different from what we are looking and might be i was not able to put in that issue/requirement clearly.

We have Employee id attribute populated with Employee id
Now to generate a custom claim, we are adding prefix to Employee id and this prefix is fixed string.

Ex:
Fixed String is "Sales"
Employee id : 12345
Output from Transform rule expected is : Sales12345
This is possible in ADFS Servers using Transformation rule to concatenate fixed string with any attribute and generate new claim. But this capability is missing in Azure AD SAML claim rule.
It will be great if any one can help to achieve this using Azure AD SAML integration.

Regards
Mahesh

2 Votes 2 ·
shashishailaj avatar image shashishailaj AralelemathMaheshCognizant-1711 ·

@AralelemathMaheshCognizant-1711 ,
Hello Mahesh,
As per your explanation , i think you would need to statically type the details rather than selecting an attribute there and ignore the separator value which would return something like Sales12345 as output claim. I have updated my answer with details . Please check and let me know in case that helps. If you still have queries , please do let us know.
thank you.
shashi

1 Vote 1 ·

Hi Shashi,
Thanks for the details but how do we map this to "name identifier".
We need to pass this attribute/value as name identifier to application.
When i try to create this in name identifier attribute, join function has a limitation of joining value to verified domain only.

Regards
Mahesh

1 Vote 1 ·
AralelemathMaheshCognizant-1711 avatar image
1 Vote"
AralelemathMaheshCognizant-1711 answered

Hi Shashi, All

Thanks for your support.
Would like to share the update and approach we decided to move forward as below.
We understand that there is no feasible option in Azure AD to create custom transform rule mapping to name identifier.
It is only possible to map the attributes in user object to name identifier.

Hence working with application team to map it to any of the existing attribute.

Thanks to all supported

Regards
Mahesh

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Geoff-4891 avatar image
1 Vote"
Geoff-4891 answered LucasPhelps-1061 commented

Hi Shashi,

I have a similar issue with creating a transform rule mapping to name identifier. I used the "Join" function to add a static test with employee id. However, how do i pass this attribute on as a NameID.

Couldn't find this info any where.

Any help would be appreciated.

Thanks


Geoff

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Geoff -- I know this post is very late, but I wanted to respond incase it would help anyone else.

If you want to do a transformation and pass it as the default Name ID , you do not want to create a new attribute as suggested above in the screenshots, but instead simply click into the default "Unique User Identifier (Name ID)" that exists on all new SAML apps. Edit the existing claim and once you click into it, then you can change the 'source' to transformation. Then follow the screenshots above to use the Join() action to join "Sales" with employee ID.

You can then use the Test Sign-In functionality of the Azure SAML ocnfiguration to see what data it is passing in the SAML responses.

1 Vote 1 ·