Skip to content

Conversation

@Adam-it
Copy link
Member

@Adam-it Adam-it commented Nov 29, 2025

Closes #6726

@MartinM85 MartinM85 self-assigned this Dec 17, 2025
Copy link
Contributor

@MartinM85 MartinM85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to allow users to retrieve permissions list by container name the user must provide also container type id.

* @returns ID of the container.
*/
async getContainerIdByName(name: string): Promise<string> {
const containers = await odata.getAllItems<SpeContainer>(`${graphResource}/v1.0/storage/fileStorage/containers?$select=id,displayName`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This query won't work. The API returns the error like containerTypeId filter parameter cannot be empty.

https://learn.microsoft.com/en-us/graph/api/filestorage-list-containers?view=graph-rest-1.0&tabs=http#query-parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a containerName option to spe container permission list command

2 participants