locked
"whenCreated" Attribute Claim RRS feed

  • Question

  • Hello,

    Is it possible to take the AD attribute "whenCreated" for when an AD gets created and have it pull just the MM/DD/YYYY format.

    I'm not sure if it's possible to create a claim to pull the "whenCreated" attribute to have it only get the month/day/year format. 

    If it is possible, would adding/subtracting 30 days work? So if a user was created on 05/08/2019, the claim will see it as 04/08/2019. 

    Thursday, May 9, 2019 1:59 AM

All replies

  • When you pull the whenCreated attribute from AD in a claim rule, it will show the following format: YYYYMMDDHHmmss in Zulu time. 

    You can transform it to MM/DD/YYYY (which is in my opinion, the worst way to store or display a date) with a RegReplace operation in a second rule.

    You cannot out-of-the-box do the subtract operation. You can do that in a custom attribute store. But that's a lot of work for something that can be handle by the actual relying party.


    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

    Sunday, May 19, 2019 8:46 PM