Add commands for SharePoint Embedded
@milanholemans is already working on this.
Since Jun 10, 2025.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 413
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 21
Description
Aim
The aim of this issue is to track and add follow-up issues for commands which would allow to manage a SharePoint Embedded (SPE) container.
What would be the benefit?
Each Container Type is owned by one Application; and each Application can own only one Container Type. The owner application may grant permission to other apps to modify containers of the owner app container type. So let's say someone developed their own app that uses SPE containers but would want an additional application (like a console helper app) to generally have an overview of all containers and it's contents of some specific container type. So CLI for M365 could be this additional helper application that when granted by the owner application of a container type, would allow (admins or developers) to list, and manage containers of that type.
https://learn.microsoft.com/en-us/sharepoint/dev/embedded/concepts/app-concepts/app-architecture
Additional role for CLI could be the managements side. Like managing container type permissions.
Commands I would add
As SharePoint Embedded is a kinda a separate thing in SharePoint I would add it as a new group. So similar like for SharePoint Online we have spo I would introduce spe fro SharePoint Embedded.
The commands should be based on MS Graph API support and SharePoint REST API v2.1 (aka: VROOM). More info on this in the following docs:
- SPE docs
- [MS Leearn module](https://learn.microsoft.com/en-us/training/modules/sharepoint-embedded-create-app/6-read-write-files
-
m365 spe containertype add- #5767 -
m365 spe containertype get- #5991 -
m365 spe containertype list- #5989 -
m365 spe containertype set- #6841 -
m365 spe containertype remove- #5992 -
m365 spe containertype permission add- #6760 -
m365 spe containerType permission get- #6842 -
m365 spe containertype permission list- #6764 -
m365 spe containerType permission remove- #6844 -
m365 spe containerType permission set- #6843 -
m365 spe container activate- #6086 -
m365 spe container add- #6081 -
m365 spe container get- #6083 -
m365 spe container list- #6082 -
m365 spe container remove- #6084 -
m365 spe container set- #6846 -
m365 spe container recyclebinitem list- #6156 -
m365 spe container recyclebinitem remove- #6734 -
m365 spe container recyclebinitem restore- #6085 -
m365 spe container permission add- #6159 -
m365 spe container permission list- #6162 -
m365 spe container permission remove- #6161 -
m365 spe container permission set- #6160 -
m365 spe file add- researching 📖... -
m365 spe file get- researching 📖... -
m365 spe file list- researching 📖... -
m365 spe file remove- researching 📖... -
m365 spe file copy- researching 📖... -
m365 spe file move- researching 📖... -
m365 spe folder add- researching 📖... -
m365 spe folder get- researching 📖... -
m365 spe folder list- researching 📖... -
m365 spe folder remove- researching 📖... -
m365 spe folder set- researching 📖... property/column?? - researching 📖...
Changes:
- #5990
- #6719
- #6726
- #6840
... besides the above I am planning to add commands for managing container, container permissions, container property, container column, container files etc.... this is still work in progress
Other things to consider
We could research if it is possible to check if the SharePoint Embedded is enabled on the user tenant and add a ensure command for that
Tip
During development this might be helpful to browse and play around
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.