@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:
Please select the right region, PersonGroupID and the SubscriptionKey and then try to invoke the Create API and check if that works.
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.