-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance spo user ensure
with more options
#6181
Labels
Comments
milanholemans
added
enhancement
needs peer review
Needs second pair of eyes to review the spec or PR
labels
Jul 25, 2024
Jwaegebaert
added
help wanted
and removed
needs peer review
Needs second pair of eyes to review the spec or PR
labels
Jul 26, 2024
Can I work on this? |
Can I work on this? |
Sure, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the command spo user ensure accepts two options: user ID and user UPN.
However, there can/should be more options, for example, to ensure Entra groups.
I suggest we add the following options:
--loginName [loginName]
loginName
,entraId
,userName
,entraGroupId
, orentraGroupName
.--entraGroupId [entraGroupId]
loginName
,entraId
,userName
,entraGroupId
, orentraGroupName
.--entraGroupName [entraGroupName]
loginName
,entraId
,userName
,entraGroupId
, orentraGroupName
.Let's also add some extra examples, e.g.:
m365 spo user ensure --webUrl https://contoso.sharepoint.com/sites/Marketing --loginName "c:0t.c|tenant|e08e899f-ba40-4e91-ab36-44d4fbaa454e"
m365 spo user ensure --webUrl https://contoso.sharepoint.com/sites/Marketing --loginName "i:0#.f|membership|john.doe@contoso.com"
m365 spo user ensure --webUrl https://contoso.sharepoint.com/sites/Marketing --entraGroupId "Marketing team"
The text was updated successfully, but these errors were encountered: