GitHub remove user to the ORG

Hi Team,

Has anyone of you tried configuring Github via Workflow?
Currently I facing a 404 Error - “Not Found if requester is an organization member and user is not a member” when testing my workflow wherein the user will be removed from the Org once the user is terminated (lifecycle state changes to inactive).

image

My workflow looks like this






Not sure where is the problem exactly as we have already tried troubleshooting it but it still gives us the same error.

Also, I have tried it on Postman and it’s working as expected; it was able to remove the user in the Org.

Hope anyone can help me out here.