github.com/IBM-Cloud/bluemix-go@v0.0.0-20240423071914-9e96525baef4/examples/usermanagement/user_invite/README.md (about) 1 # Invite User 2 3 This example invites user to an account. 4 5 Example: 6 7 ``` 8 go run main.go -userEmail new@in.ibm.com -accountID <account-id> 9 ``` 10 11 # Invite user with acces groups 12 13 This example invites user to an account with the comma separated list of access groups 14 15 Example: 16 17 ``` 18 go run main.go -userEmail new@in.ibm.com -accountID <account-id> -accessGroups "<AccessGroupId-****>,<AccessGroupId-***>" 19 ``` 20 21 # Invite user with IAM policy 22 23 This example invites user to an account with an IAM Policy 24 25 Example: 26 27 ``` 28 go run main.go -userEmail new@in.ibm.com -accountID <account-id> -roles "Opera 29 tor,Writer" -service "<service>" -resourceGroupID "<resourceGroupID>" 30 ``` 31 32 # Invite user with Classic infrastructure Permissions 33 34 This example invites user to an account with Comma separated list of classic infrastructure permissions 35 36 Example: 37 38 ``` 39 go run main.go -userEmail new@in.ibm.com -accountID <account-id> -infraPermission "LOCKBOX_MANAGE,I 40 P_ADD,FIREWALL_RULE_MANAGE,LOADBALANCER_MANAGE" 41 ``` 42 43 # Invite user with CloudFoundry roles 44 45 This example invites user to an account with Comma separated list of orgnization and space roles 46 47 Example: 48 49 ``` 50 go run main.go -userEmail new@in.ibm.com -accountID <account-id> -org <org-name> -space <space-name> -region <region> -orgRoles "BillingManager,Manager" -spaceRoles "Developer,Manager" 51 ``` 52 53 # Grant a permission to a user from a set of whitelisted IPs to IBM Cloud console 54 55 This example configure a user with list of white-listed IPs from which he/she can access the IBM Cloud console. White-listed ip is a string in which all the IPs are comma seperated. 56 57 Example: 58 59 ``` 60 go run main.go -userEmail new@in.ibm.com -accountID <account-id> -allowedIP "192.168.0.0,192.168.0.1" -org <org-name> -space <space-name> -region <region> -orgRoles "BillingManager,Manager" -spaceRoles "Developer,Manager" 61 ``` 62 63 64