I need to generate a list of all my expired app registration (Client Secret)

johndoe-9621 0 Reputation points
2024-03-08T15:34:34.5933333+00:00

Hi,

we have around 5000 App registration and for housekeeping purposes i need to generate/export a list of all App registration where the Clients Secret is expired. Would be nice if i can get a list with the state what im currently seeing on portal (like: Expired, Expiring soon, Current). The portal itself can generate a CSV but that only handle 999.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,675 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 36,846 Reputation points Microsoft Employee
    2024-03-09T00:52:12.7133333+00:00

    Hi @johndoe-9621 ,

    We do have a Powershell script sample for exporting all app registration secrets and certificates expiring beyond a required period:

    https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/scripts/powershell-export-apps-with-secrets-beyond-required

    We also have a script for exporting all app registrations with expiring secrets and certificates. You can use it to export secrets expiring in the next X days and/or already expired.

    https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/scripts/powershell-export-apps-with-expiring-secrets

    There are also some unofficial custom ones that others have shared online, but I have not tested these and cannot personally vouch for them.

    Let me know if this helps and is what you are looking for!

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.