Hey all,
I'm working with the Jira REST API for my application and have a question.
I'm an admin in Jira and have successfully established a connection between Postman and my Jira account (I created an app via Atlassian Developer, and everything is working as expected).
However, when I delete a Jira user—either through Postman or the web UI—I can still access their data via the API.
Why is this happening? If I delete a user, I would expect their data to be inaccessible.
Has anyone else encountered this issue? Is there any documentation that explains this behavior?
Thanks in advance!
Take it with a pinch of salt but I presume, when a user is deleted in Jira, their account is deactivated but not removed entirely. In order to retain historical data related to the user (they created, commented, transitioned, etc) this is a must for the auditing and issue history purposes.
Hey, thanks for your reply.
This seems really strange to me. I understand that Jira needs to retain some data for reference, but deleted users should be completely inaccessible to admins—both from the web UI (which already seems to be the case) and from the backend API.
Right now, I can still fetch and even update (!) data of deleted users from my organization via the API, which doesn’t seem right.
Is this behavior documented anywhere? I’d really like to spend some time reading about it.
Vasilis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+ Is there any way / are we able to detect with API if user was "deleted"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can detect if a user was deleted (or deactivated) via the Jira REST API. However, I'm uncertain whether you can differentiate between the two; I mean, I don't know if there is a way to determine if the user is deactivated due to being deleted. You can call /rest/api/3/user?accountId=<USER_ACCOUNT_ID> REST API and check the active property from the returned JSON.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.