Skip to content

Extends 'spe container permission list' command. Closes #6726#7053

Draft
Adam-it wants to merge 1 commit intopnp:mainfrom
Adam-it:extends-container-permission-list-command
Draft

Extends 'spe container permission list' command. Closes #6726#7053
Adam-it wants to merge 1 commit intopnp:mainfrom
Adam-it:extends-container-permission-list-command

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

@MartinM85 MartinM85 marked this pull request as draft January 1, 2026 13:50
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