• 21
    • 47
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Current way of deactivating a user from the jira-users group

      1. Remove these groups via (Administration » Groups » "jira-users" » Edit Members).
      2. By referring the current documentation of Deactivating a user.

      However, it will be great to deactivate users with a new feature of selecting a batch/bulk of unactive users.

      For example, I have about 100 users that are not in that jira-users group.

      I want to deactivate all those 100 users using the new active flag.

            [JRASERVER-30708] Bulk deactivate users

            powershell script for disabling users in bulk

            If(-not(Get-InstalledModule ImportExcel -ErrorAction silentlycontinue)){
                Install-Module ImportExcel -Confirm:$False -Force
            }
            If(-not(Get-InstalledModule jiraps -ErrorAction silentlycontinue)){
                Install-Module jiraps -Confirm:$False -Force
            }
            Set-JiraConfigServer -Server "https://jira.domain"
            $cred = get-credential #admin credentials e.g jira-admin$XLSXFile = Import-Excel -path C:\Users\<user<\Downloads\Book1.xlsx 
            #File containing Username, Email, login, etc. in a listed table
            
            foreach ($x in $XLSXFile){
            $disable = Get-JiraUser -UserName $x.Username -IncludeInactive -credential $cred
            foreach ($d in $disable){
            Set-JiraUser -User $d -Active 0 -credential $cred
            }}
            

            the excel looks like this:

            Username Full Name Last Login
            mer@domain Maria  15/08/2016 12:38
            lso@domain Lea 08/12/2016 10:40
            ch@domain Casper 24/06/2017 04:42
            cvi@domain Christian  01/10/2019 10:42
            Karina@domain Karina 07/10/2019 08:45
            rikke@domain Rikke 08/10/2019 09:05

            Casper Hjorth Christensen added a comment - powershell script for disabling users in bulk If(-not(Get-InstalledModule ImportExcel -ErrorAction silentlycontinue)){ Install-Module ImportExcel -Confirm:$False -Force } If(-not(Get-InstalledModule jiraps -ErrorAction silentlycontinue)){ Install-Module jiraps -Confirm:$False -Force } Set-JiraConfigServer -Server "https: //jira.domain" $cred = get-credential #admin credentials e.g jira-admin$XLSXFile = Import-Excel -path C:\Users\<user<\Downloads\Book1.xlsx #File containing Username, Email, login, etc. in a listed table foreach ($x in $XLSXFile){ $disable = Get-JiraUser -UserName $x.Username -IncludeInactive -credential $cred foreach ($d in $disable){ Set-JiraUser -User $d -Active 0 -credential $cred }} the excel looks like this: Username Full Name Last Login mer@domain Maria  15/08/2016 12:38 lso@domain Lea 08/12/2016 10:40 ch@domain Casper 24/06/2017 04:42 cvi@domain Christian  01/10/2019 10:42 Karina@domain Karina 07/10/2019 08:45 rikke@domain Rikke 08/10/2019 09:05

            There are a few usage examples to bulk disable users using the endpoint api/2/user:
            https://confluence.atlassian.com/display/JIRAKB/Bulk+Disable+Jira+Users

            You may try the bash command, it is quite useful to bulk disable users from a txt usernames list.

            Pedro Souza added a comment - There are a few usage examples to bulk disable users using the endpoint api/2/user : https://confluence.atlassian.com/display/JIRAKB/Bulk+Disable+Jira+Users You may try the bash command, it is quite useful to bulk disable users from a txt usernames list.

            Adam Labus added a comment -

            Hello,

            if you are looking ability to active/deactive users using REST API please check my new plugin Extender for JIRA

             

            Cheers

            Adam Labus added a comment - Hello, if you are looking ability to active/deactive users using REST API please check my new plugin  Extender for JIRA   Cheers

            Is there an update for this request? It would be very useful for this of us that use AD integration so that we can do batch cleanups.

            Deleted Account (Inactive) added a comment - Is there an update for this request? It would be very useful for this of us that use AD integration so that we can do batch cleanups.

            We have a large installation that is using LDAP for user Authentication.
            When a user is deactivated in LDAP, they can no longer logon; however, we would like a way to have them systematically deactivated in JIRA so they no longer use one of the licensed seats.

            Arthur Herman added a comment - We have a large installation that is using LDAP for user Authentication. When a user is deactivated in LDAP, they can no longer logon; however, we would like a way to have them systematically deactivated in JIRA so they no longer use one of the licensed seats.

            +1

            Sabre DOS added a comment -

            +1 Any updates on this feature?

            Sabre DOS added a comment - +1 Any updates on this feature?

            Hello Jutamat,

            We have been rearranging the page on the website and sadly the old link no longer works. New link below:

            http://www.tieto.com/industries/telecom/tietos-solutions-network-equipment-providers/tietos-solutions-network-equipment-providers-rd-efficiency-excellence/development-platform-service/atlassian-services/atlassian-plugins

            As for your question, it is a commercial plugin. If you have any questions the site should also have a contact form so that the correct parties gets the questions.

            Best Regards,
            Rickard Johansson
            Tieto

            Rickard Johansson [Tieto] added a comment - Hello Jutamat, We have been rearranging the page on the website and sadly the old link no longer works. New link below: http://www.tieto.com/industries/telecom/tietos-solutions-network-equipment-providers/tietos-solutions-network-equipment-providers-rd-efficiency-excellence/development-platform-service/atlassian-services/atlassian-plugins As for your question, it is a commercial plugin. If you have any questions the site should also have a contact form so that the correct parties gets the questions. Best Regards, Rickard Johansson Tieto

            Hi Tieto,
            Thanks for your information, this is useful plugin , however, I got the error "Page cannot be found".
            Is it a free plugin or commercial?

            Regards,
            Jutamat

            Jutamat Phothisitthisak added a comment - Hi Tieto, Thanks for your information, this is useful plugin , however, I got the error "Page cannot be found". Is it a free plugin or commercial? Regards, Jutamat

            Hello,

            I would just like to inform that we have developed a JIRA Plugin (as well as a confluence counterpart) for Bulk Deactivation of Users.
            Currently it supports searching out and listing users that have been inactive for a given amount of months as well at the option to deactivate these users.
            More information can be found at http://www.tieto.com/industries/telecom/network-equipment-providers/rd-efficiency--excellence/atlassian-services/atlassian-plugins-page

            Best Regards,
            Rickard Johansson
            Tieto

            Rickard Johansson [Tieto] added a comment - Hello, I would just like to inform that we have developed a JIRA Plugin (as well as a confluence counterpart) for Bulk Deactivation of Users. Currently it supports searching out and listing users that have been inactive for a given amount of months as well at the option to deactivate these users. More information can be found at http://www.tieto.com/industries/telecom/network-equipment-providers/rd-efficiency--excellence/atlassian-services/atlassian-plugins-page Best Regards, Rickard Johansson Tieto

              Unassigned Unassigned
              ckimloong John Chin
              Votes:
              156 Vote for this issue
              Watchers:
              87 Start watching this issue

                Created:
                Updated: