App Only https://accounts.accesscontrol.windows.net/id/tokens/OAuth/2 with Rest

g h 716 Reputation points
2020-11-20T07:59:39.197+00:00

I want to call Rest API using App Only Credential.

I have create a app in AppRegNew.aspx and add into this request header:

https://accounts.accesscontrol.windows.net/id/tokens/OAuth/2

However, This id I don't know how to get, is this the SharePoint site Id ?

Can any one help me please ?

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,610 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerryzy 10,571 Reputation points
    2020-11-23T02:06:58.273+00:00

    Hi @g h ,

    This is Tenant Id.

    Please open browser window in Private mode, and type your SharePoint Online site like this:

    https://Tenantname.sharepoint.com

    In Browser address bar, there is the Tenant Id:

    41706-snipaste-2020-11-23-10-04-55.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.