cloudfoundry / cli

The official command line client for Cloud Foundry
https://docs.cloudfoundry.org/cf-cli
Apache License 2.0
1.75k stars 929 forks source link

invite-user / set-space-role --invite #2237

Open znd4 opened 2 years ago

znd4 commented 2 years ago

Please provide details on the following items. Failure to do so may result in deletion of your feature request.

What's the user value of this feature request? Allows us to script developer onboarding / remove manual step for space / org admins.

Who is the functionality for? CF space / org admins who want to use the CLI for onboarding new teammembers

How often will this functionality be used by the user? Whenver new team-members are onboarded (probably about once a month)

Who else is affected by the change? Nobody that i can think of. The default behavior for set-{space/org}-role can remain the same (i.e. default to --no-invite)

Is your feature request related to a problem? Please describe.

Currently, there doesn't seem to be a way to "invite" new users to a space / org via the CLI. When I run

cf set-space-role newperson@company.com <org> <space> SpaceDeveloper

I get

No user exists with the username 'newuser@company.com'.

Describe the solution you'd like

I'd like to either have new invite-to-space / invite-to-org commands, or to see a --no-invite/--invite flag in the set-space-role / set-org-role commands, which would lead to the behavior when inviting email addresses via the GUI (I think they get an email?)

Describe alternatives you've considered

Manually adding team-members (this is a $T \times S$ problem, where T is the number of team-members and S is the number of PCF spaces.

Additional context

Note: As of the GA of the v7 CLI, the v6 line is no longer under active development and will be updated only to patch CVEs or fix severe blocking defects with no workarounds.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed.