Skip to content

Commit

Permalink
Added instruction on the order of permission attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenZomers authored Oct 4, 2024
1 parent df7b5e3 commit 0df669f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/articles/permissionattributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ If multiple attributes are defined on a cmdlet, the cmdlet will require only one
[RequiredApiDelegatedOrApplicationPermissions("graph/Directory.ReadWrite.All")]
```

These attributes should be added starting with the least priviledged one at the top going down towards the most priviledged permission.

If you have a scenario that a combination of permissions is required, you can define multiple permissions in the same attribute to have them be handled as an AND. I.e. the following permission attributes would define that all of the permissions are required to run the cmdlet:

```csharp
Expand Down

0 comments on commit 0df669f

Please sign in to comment.