We are getting Unauthorized errors while creating PersonGroup it

Simpli HR 5 Reputation points
2023-11-21T11:52:46.93+00:00

Hi Team,

We are trying to use Vision AI services for face detection but while creating PersonGroup it returns an Unauthorized

Resource Name: SimpliyHRFaceAPIUnauthorized.jpeg

Regards

Simpli HR

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,600 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    2023-11-22T08:23:46.78+00:00

    @Simpli HR Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    .
    I understand that you are encountering exception "Microsoft.Azure.cognitiveservices.Vision.Face.Models.APIErrorException" "Unauthorized" while creating a Person Group from your application.
    .

    Please note, Face service access is limited based on eligibility and usage criteria in order to support our Responsible AI principles. Face service is only available to Microsoft managed customers and partners. Use the Face Recognition intake form to apply for access. If this is not yet done.

    • Could you please check if you have provided a valid API key in the request header ?
    • Request Body: The request body should include a user-defined name (maximum length is 128) and optionally, user-provided data (should not exceed 16KB) and a recognition model.
      .

    Action Plan:
    If you’re still having trouble, consider using the REST API to get a more detailed error message. So please invoke the below FACE REST API directly to create a PersonGroup and check if that works fine:

    https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395244

    Please select the right region, PersonGroupID and the SubscriptionKey and then try to invoke the Create API and check if that works.

    User's image

    If none of the above steps help, Please share the detailed error message ( in text format) with the exception callstack and a sample code, so that I can test it at my end.

    Awaiting your reply.

    **

    Please do not forget to "Accept the answer” and “up-vote” the below answer wherever the information provided helps you, this can be beneficial to other community members.

    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.