Hi, @Sahil Singla
Thank you for posting in Microsoft Q&A forum.
The error message you are receiving indicates that you do not have sufficient permissions to access the data you are trying to fetch using the LinkedIn API. Specifically, the error message states that you do not have enough permissions to access the GET /people/(id:%7Bsahil-singla-5166ab238%7D) endpoint. This error is likely caused by one of the following reasons:
- Your application has not been authorized and authenticated to access LinkedIn APIs. Applications must be authorized and authenticated before they can fetch data from LinkedIn or get access to member data. More information about authorization flows can be found in the LinkedIn API documentation.
- Your access token is invalid or has expired. Make sure you follow the authentication procedure to get a correct access token. If your access token has expired, you can refresh it using the authorization code flow.
- The member whose data you are trying to access has revoked your access to their data from their privacy settings on LinkedIn's website.
To resolve this issue, you should check that your application has been authorized and authenticated to access LinkedIn APIs, and that you are using a valid and non-expired access token. If the issue persists, you may need to reach out to LinkedIn's technical support channel or refer to the LinkedIn API documentation for further assistance.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".