
RichardC.41425 (Customer) asked a question.
What I want to achieve, ultimately is to have OKTA Mastered Accounts to
- Have an end date against them
- Have that end date pushed to populate the Active Directory Account Expiry Date
There are a lot of other things associated with this which I have good ideas on how to do – e.g. creating custom attributes in OKTA user profile to have an end date attribute etc, getting scheduled tasks running or workflows to scan all active users for that attribute, then interrogate the attribute and if end date = today then disable account in OKTA etc
And yes I know that if the account is disabled in OKTA it should also then master over AD and disable it in AD
I am just aware that right now we have some potential needs to also have that expiry date populated in the AD object of the accounts – so I am just wondering if there is a way to do that.
i.e. push okta attribute for end date to populate the Active Directory Account Expiry Date?

I would go with you idea of "e.g. creating custom attributes in OKTA user profile to have an end date attribute etc". If you are wanting the date to be set in in Okta sometimes and in AD other times and don't want the AD value to be overwritten by Okta mapping then use an expression to see if the value already exists in AD leave it alone.
Thanks for the response.
I am wanting to explicitly be able to push a custom attribute in OKTA called "End Date" to populate the AD attribute of Account Expiry Date - and want to know how I can achieve this
Hope this helps! Upvote and mark as best answer if it does.
Hello @RichardC.41425 (Customer) Thank you for reacting out to our Community!
Please see this article that might provide some assistance on the matter at hand:
https://support.okta.com/help/s/article/How-to-convert-Active-Directory-accountExpires-into-date-format?language=en_US
The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.
The October issue of the Okta Community is here and packed with tips on certification, how to earn badges, and new releases. Let us help you stay connected.
This looks like the opposite of what Richard is looking for.
He is looking for Okta to Active Directory mapping. The link provided is for AD to Okta mappings.
Thanks John - Yes Paul , sorry what you have answered is not what I am looking for.