An Azure service that provides an event-driven serverless compute platform.
Thanks for your time and patience. From above descriptions it seems like you are trying to change user properties via AAD hosted function API.
To manage Global administrator user, the service / user account must have GA role assigned. A "user administrator" is the role with which you could manage all other users within the directory.
Since you are using Azure function API you must have given graph application User.ReadWrite.All permissions.
With the User.ReadWrite.All delegated or application permission, updating another user's businessPhones, mobilePhone or otherMails is only allowed on users who are non-administrators or assigned one of the following roles: Directory Readers, Guest Inviter, Message Center Reader and Reports Reader. For more details, see Helpdesk (Password) Administrator in Azure AD available roles.
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.