Skip to content

Instantly share code, notes, and snippets.

@atomic-penguin
Created May 26, 2011 19:07
Show Gist options
  • Select an option

  • Save atomic-penguin/993808 to your computer and use it in GitHub Desktop.

Select an option

Save atomic-penguin/993808 to your computer and use it in GitHub Desktop.
+search(:users, "action:remove") do |rm_user|
+ user rm_user['id'] do
+ action :remove
+ end
+end
sysadmin_group = Array.new
-search(:users, 'groups:sysadmin') do |u|
+search(:users, 'groups:sysadmin NOT action:remove') do |u|
sysadmin_group << u['id']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment