Is there a way to 'unsuspend' a suspended user via the API?

I’m trying to automate the cleanup of our GH Enterprise (v2.17) environment by deleting inactive user accounts via the API. I discovered we had configured GH to automatically suspend ‘inactive’ users (using LDAP Sync), and as a result, the accounts cannot be deleted via the API.  The show up as non-existent.

Is there a way to get around this somehow using the API? I’d rather not have to manually ‘unsuspend’ and delete x-number of users across our GH servers.

Thanks in advance!

1 Like

There’s no specific API endpoint to “un-suspend” users but perhaps you can just add them back through the API and then delete them once they are officially back in the org.