Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable users automatically based on inactivity for more than 3 months

Krithica G (EXTERNAL)
Contributor
April 4, 2025

 

 

I want to automatically disable the inactive users in application for inactivity period of 3 months.
Currently i am extracting the list from DB and manually unchecking the confluence-users group from the users.
Need to make it automated.
Kindly help without using plugins . 

2 answers

Jim Knepley - ReleaseTEAM
Atlassian Partner
April 4, 2025

@Krithica G (EXTERNAL) ,

To add to @Manoj Gangwar's answer, you can remove a user from a specific group using the REST API, which will save you having to uncheck them from the confluence-users group manually.

ref: https://developer.atlassian.com/server/confluence/rest/v920/api-group-user-group/#api-rest-api-user-username-group-groupname-delete

Like Manoj Gangwar likes this
0 votes
Kieren _SmolSoftware_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2025

There are plenty of apps that can help you do this. Unfortunately, apart from the API mentioned in another comment, there’s no easy way to do this within Atlassian tools.

If you are using an app or API to automate this, be very careful as the data isn’t very accurate… as an example, it won’t count a Jira Admin going into the admin settings as having “Used Jira”. So you may be removing user access for active users…

Our App, Admin Automations, is adding this feature soon, but being very careful about how users base their decisions on this incomplete data.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events