Open Adam-it opened 2 months ago
One improvement could be adding another example, maybe one with multiple roles. We could also add userId
, so they can set permissions using the user Entra ID.
I think upn
should also be renamed to userName
to be consistent with other commands.
I think
upn
should also be renamed touserName
to be consistent with other commands.
updated ✅
One improvement could be adding another example, maybe one with multiple roles. We could also add
userId
, so they can set permissions using the user Entra ID.
Added additional example ✅ Improved a bit description ✅ and the description of the container ID ✅ Good call with the userId. added ✅
@pnp/cli-for-microsoft-365-maintainers any other feed or should we open it up?
Made a few small remaining changes. LGTM!
Usage
m365 spe container permission add [options]
Description
Adds permission to SharePoint Embedded Container for a specified user
Options
-i, --containerId <containerId>
-r, --roles <roles>
reader
,writer
,manager
,owner
.--userName [userName]
userName
oruserId
but not both.--userId [userId]
userName
oruserId
but not both.Examples
Adds a reader role for the specified user to the container
Adds a multiple roles for the specified user to the container
Default properties
No response
Additional Info
we may use the following API for that: https://learn.microsoft.com/en-us/graph/api/filestoragecontainer-post-permissions?view=graph-rest-1.0&tabs=http