-
Notifications
You must be signed in to change notification settings - Fork 308
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
New command: m365 spe containertype register #6049
Comments
Hi @Adam-it, few questions
PUT https://contoso.sharepoint.com/_api/v2.1/storageContainerTypes/{containerTypeId}/applicationPermissions
Content-Type: application/json
{
"value": [
{
"appId": "71392b2f-1765-406e-86af-5907d9bdb2ab",
"delegated": ["full"],
"appOnly": ["full"]
}
]
} |
@intikhabalam That is because the command still has to be implemented and not available for use just yet. |
i am stuck with a production level problem. can you any one give me any easy way to register my containerType with azure entra app registration? |
sorry @intikhabalam for the late reply.
Please be aware for in order for this to work you will need to use application authentication method with cert. Check out the SharePoint Embedded Sample Apps. There you will find a postman collection which will give you everything you need to set up and get started with SPE. for a more comprehensive overview which also explains the registration I highly recommend AC blog post Hope it helps and allows you to move forward |
thanks @milanholemans for pointing it out. I kinda assumed it is just common knowledge and probably was in a bit of a hurry. I updated the docs
this request should be run as an app |
thank you @milanholemans , @MathijsVerbeeck for reply, I tried both ways but getting 'access denied' error. I am a bit confused about the body of Registration ContainerType also. it contains a section for graph explorer AppId also. i have tried with or without graph App Id but i get the error for all calls :( I followed the viotanos and microsoft SPE article but getting failure always :( |
Usage
m365 spe containertype register [options]
Description
Register the Container Type
Options
-i, --id [id]
id
orname
but not both.-n, --name [name]
id
orname
but not both.Examples
Register the Container Type using name
m365 spe containertype register --id '4ec4aefd-4fa3-0e4a-20c3-6e68389e7138'
Register the Container Type using id
m365 spe containertype register --name 'test container'
Default properties
No response
Additional Info
we may use the SharePoint REST PUT request
with the following body
The text was updated successfully, but these errors were encountered: