Forum Discussion

Kamala's avatar
Kamala
Copper Contributor
Nov 14, 2024

PowerApp Graph Custom Connector without User Login

So I've been trying to create an app that will allow users to set and edit their own pronouns and then store those pronouns in Graph for use in Email Signatures and the such. 


I've been following this tutorial <How to add Azure AD directory extensions> in doing so, and I've basically got it down I've made the app and it works. However, it only works for me, i.e. admins. Whenever another user logs in and they are able to view their pronouns, i.e. GET graph.microsoft.com/me, but can't update their pronouns, PATCH graph.microsoft.com/me?$select=pronouns

 

They get this error:

My question is what can I do to get this app to be able to make the changes to this one specific item in graph, or allow for users to be able to edit this for themselves, or something that would make this work. Or perhaps I'm going about it the wrong way.

 

Any help is appreciated,

Kamala

1 Reply

  • Mks_1973's avatar
    Mks_1973
    Iron Contributor

    Check API permissions in the Azure AD app registration and ensure User.ReadWrite is set with delegated permissions.

    Grant tenant-wide admin consent for the permissions.

    Ensure users provide consent when first using the app.

    Double-check the OAuth setup for the custom connector in PowerApps.

    Consider using a middle layer like an Azure Function if required.

    Verify the access token scopes used during the PATCH request.



    This issue is common when using Microsoft Graph with PowerApps because of the balance between permissions, consent, and proper configuration in Azure AD.

Resources