Skip to content

Bug report: spo folder roleassignment add command will also break role inheritance #6555

@Adam-it

Description

@Adam-it

Priority

(Medium) I'm annoyed but I'll live

Description

when using spo folder roleassignment add on a folder which inherits permissions it will break permission inheritance for me.
This is very strange as:

  • it is not mentioned in the docs of the command
  • no other roleassignment add command for web, list or list item or other does that
  • we have separate break role inheritance commands for that

Steps to reproduce

just run the command on some folder that inherits permission. It will execute and not show any error and it will break role inheritance for me

Expected results

should show error message and not break role inheritance

Actual results

will break the role inheritance

Diagnostics

No response

CLI for Microsoft 365 version

latest

nodejs version

v20.17.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions