Unable to cancel access profile request where target is an identity that was deleted

We have a tool that shows all pending access profile request. I have a handful of access profiles from 2021. Apparently there are some access profiles that are pointing to a target that is a deleted identity.

I’ve attempted to cancel that access profile request using the following rest API.
{{api-url}}/beta/access-requests/cancel
body:
{​​​​
“accountActivityId”: “2c91808875954c49017600f49d0735f8”,
“comment”: “expired access profile”
}

The response I receive is
{
“detailCode”: “400.0 Bad request syntax”,
“trackingId”: “93a861e3caac4e33aa648fab7916c8bd”,
“messages”: [
{
“locale”: “en-US”,
“localeOrigin”: “DEFAULT”,
“text”: “The request could not be parsed.”
}
],
“causes”:
}

Your error is:
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected ‘:’ at line 2 column 4 path $.​​​​
This is due to the cut and paste of the double quotes. Chrome tends to change them.
Put body in a plain text editor. Replace the existing double quotes, cut and paste and try again.
Note the beginning and ending double quotes do not look the same.
“detailCode”

1 Like