Getting 403 Forbidden issue for creating patient resource using azure b2c user

Nikhitha karanth 0 Reputation points
2025-02-21T07:25:38.39+00:00

Getting 403 Forbidden issue for creating patient resource using azure b2c user in azure free subscription account and also have followed all the steps from this link https://learn.microsoft.com/en-us/azure/healthcare-apis/fhir/azure-ad-b2c-setup?tabs=powershell

User's image

User's image

User's image

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,748 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kancharla Saiteja 1,820 Reputation points Microsoft External Staff
    2025-02-25T11:13:46.92+00:00

    Hi @Nikhitha karanth ,

    Thank you for posting your query on Microsoft Q&A. I am Saiteja from Q&A will be assisting you with your query.

    Based on the error message, I found the issue is happening because of the permissions you have provided while retrieving the token.

    You have tried to retrieve the token using patient.write as scope. As per the document specified, the scope should always be patient.all.read in the following format: https://testb2c.onmicrosoft.com/fhir/patient.all.read

    Ensure you check each and every step one final time and run the query and check for the results.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".

     


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.