SAML Claim Padding Transform

Recently I needed to include a 10-digit padded employee number in a SAML claim.

It seems that padding is a missing function within SAML Claim Transforms.

I tried a few things, like joining 000000000 to the employee ID (say 12345) then returning the rightmost 10 characters (0000012345), RegEx expressions, etc, but nothing seemed to work as expected. I even opened a Microsoft ticket on this, and there isn’t a solution for padding in the transforms.

Please visit Add claim manipulation for padding · Community (azure.com) to upvote this.