Getting Client secret and others programmatically with only tenant id

Anonymous
2023-08-23T10:43:21.39+00:00

Can I get client secret and other relevant details programmatically( by calling some api) if I have tenant id only..
Thanks

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Akshay-MSFT 17,951 Reputation points Microsoft Employee Moderator
    2023-08-25T10:41:09.4966667+00:00

    @Anonymous

    Thank you for posting your query on Microsoft Q&A. From above description I could understand that you are looking for way to retrieve Azure AD registered application client secret via Graph API.

    Please do correct me if this is not the case by responding in the comments section:

    If yes then we have the following answer:

    It is not possible to retrieve the client secret via the Microsoft Graph API. The client secret is a confidential value that is generated when you register your application in Azure AD. It is used to authenticate your application with Azure AD and should be kept secret.

    Thanks,

    Akshay Kaushik


    Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.***

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.