Skip to content

Instantly share code, notes, and snippets.

@nikhilsuvarna
Last active December 22, 2016 23:06
Show Gist options
  • Save nikhilsuvarna/77c2a722e9a05432e3d8e6974726d192 to your computer and use it in GitHub Desktop.
Save nikhilsuvarna/77c2a722e9a05432e3d8e6974726d192 to your computer and use it in GitHub Desktop.
space-user wackiness

Here we have added di_devops user to space di :

C:\Users\i275943\Desktop\Willow>cf space-users HCSC_PROD di <---

Getting users in org HCSC_PROD / space di as admin

SPACE MANAGER

admin

SPACE DEVELOPER

admin
di_devops
i335964
i311600
i259070

SPACE AUDITOR

No SPACE AUDITOR found

Now we are setting space role for user cse_devops for space cse :

C:\Users\i275943>cf set-space-role cse_devops HCSC_PROD cse SpaceDeveloper

Assigning role RoleSpaceDeveloper to user cse_devops in org HCSC_PROD / space cse as admin...

OK

Checking space users for space mle, note that mle_devops is no longer in space developer but has instead been overwritten by cse_devops

C:\Users\i275943>cf space-users HCSC_PROD mle 
Getting users in org HCSC_PROD / space mle as admin

SPACE MANAGER

admin

SPACE DEVELOPER

admin
i320559
cse_devops
i355929
u267033
u307470

SPACE AUDITOR

No SPACE AUDITOR found

Also checking in space tm, note that user tm_devops is not there, but it is now updated with cse_devops

C:\Users\i275943>cf space-users HCSC_PROD tm

Getting users in org HCSC_PROD / space tm as admin

SPACE MANAGER

a265653

SPACE DEVELOPER

a265653
cse_devops <--
u306991
U306840
i355709
i337944
i309459
I339023

SPACE AUDITOR

No SPACE AUDITOR found

If you observe the above output, all references for “di_devops” in the previous output is replaced with “cse_devops”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment