-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
21
-
47
-
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
- Remove these groups via (Administration » Groups » "jira-users" » Edit Members).
- 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.
- is related to
-
JRASERVER-44801 JIRA API disabling users
- Closed
- relates to
-
CWD-3455 Bulk Edit User Access
- Closed
-
JRACLOUD-30708 Bulk deactivate users
- Under Consideration
- mentioned in
-
Page Failed to load
-
Page Failed to load
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
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: