Hi @Heo Jaehyun
This may be caused by delay, please do not try to get an access token immediately after you grant permissions and admin consent, it may take some time for the permissions to take effect, please wait half a minute or so and try again.
Also, note that you must be an administrator to modify other users' information.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.
Hi @Heo Jaehyun
What authentication flow are you using? auth code flow or client credentials flow?
I used client credentials flow.
I used client credentials flow.
Hi @Heo Jaehyun
Does this error occur when you modify some specific user or when you modify the same user?
Hmm, yes, it happens when you modify for the same user.
At first, I thought it was caused by the expiration of the issued access token, but when the access token expires, it response 401 code.
403 errors are listed in the docs(https://learn.microsoft.com/en-us/graph/resolve-auth-errors), but not in any case. If the error continues to occur, I would think something is wrong, but I don't know the cause because success and failure are repeated.
Hi @Heo Jaehyun
Did you only modify the three basic attributes "
usageLocation
,userPrincipalName
,mailNickname
" for the same user?Yes, I modified basic attributes. Additionally, this error does not occur frequently.
Sign in to comment