Authorization error when trying to authenticate password in AD

When the password is updated in Active Directory, the password is updated correctly, but in the log field this error appears in the image

By looking at the error, it is not an issue with AD operation(s) and it returns from some HTTP operation. Are you trying to do any http operation in the script?

The error occurs due to the insufficient permission to process the request to the http end point. Again by looking at the log, you are generating the access token of a credential from a ISC tenant. Please check whether that specific credential have a sufficient permission to access the corresponding endpoint which you used in the script.

If you share the script snapshot, it will help to provide you the exact root cause.

yes, I added “sp:scopes:all” permission in my API client and secret creation, how can I see the script snapshot?

I was in the assumption of connector rule log, Is it a PWI log or connector rule log?