What causes AADSTS700003 and what can I do about it?
I have a Power Apps canvas app and a flow that I provide to my company that runs from that app with the Run function.
Occasionally, the connectors (Office365Users and SharePoint) return an error in the flow when executed by some users.
The errors are as follows. (IDs, etc. are replaced with "XXXX")
Error from token exchange: Runtime call was blocked because connection has error status: Enabled| Error, and office365users is in the block list. Connection errors: [
ParameterName: token,
Error: Code: Unauthorized,
Message: 'Failed to refresh access token for service: office365usercertificate. Correlation Id=XXXX, UTC TimeStamp=XXXX, Error: Failed to acquire token from AAD: {
"error": "invalid_grant",
"error_description": "AADSTS700003: Device object was not found in the tenant 'XXXX' directory.\r\nTrace ID: XXXX\r\nCorrelation ID: XXXX\r\nTimestamp: XXXX",
"error_codes": [
700003
],
"timestamp": "XXXX",
"trace_id": "XXXX",
"correlation_id": "XXXX",
"error_uri": "https://login.windows.net/error?code=700003",
"suberror": "device_authentication_failed",
"claims": "{\"access_token\":{\"capolids\":{\"essential\":true,\"values\":[\"XXXX\"]}}}"
}'
]
Please let me know what causes this error and how to prevent it before it happens.
The following is a supplement.
・I have not checked with all users, but this error also occurs for users who have not deleted the device.
・If the connection is fixed after the error occurs, it does not seem to occur for a while.