Set-PnPUserProfileProperty with Application Permission in Azure Function

Regular Contributor

When using Set-PnPUserProfileProperty in Azure Function with Power Shell and the permissions has been defined using the Application Permission. Once connected to the admin site URL using client id, tenant and cert and try to update the User Profile Property, it throws the below error

Access denied. You do not have permission to perform this action or access this resource.

Attached the screenshot for the reference

PnP PS Issue.png

 Below are the permissions given for the application in Azure API Permissions

PnP PS Issue Permission List.png


Hope someone already have a solution!

2 Replies
Have exactly same issue, Module version 3.19.2003.0.
Set-PnPUserProfileProperty works without any issues.
App has max possible permissions
I used the latest version and I am still receiving the same issue, I am not able to update the User Profile Property.