File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/Authentication/Authentication/Models Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -103,5 +103,9 @@ public class GraphPermission
103
103
/// Full deescription of the permission.
104
104
/// </summary>
105
105
public string FullDescription { get ; set ; }
106
+ /// <summary>
107
+ /// Least privilege flag shows whether the permission is the least privilege.
108
+ /// </summary>
109
+ public bool IsLeastPrivilege { get ; set ; }
106
110
}
107
111
}
Original file line number Diff line number Diff line change @@ -102,9 +102,15 @@ $ApiVersion | ForEach-Object {
102
102
Description = $_.consentDisplayName
103
103
FullDescription = $_.consentDescription
104
104
IsAdmin = $_.IsAdmin
105
+ ScopeType = $_.ScopeType
106
+ IsLeastPrivilege = $_.isLeastPrivilege
105
107
}
106
108
}
107
- $MappingValue.Permissions = ($Permissions | Sort-Object - Property Name - Unique)
109
+ $Permissions = $Permissions | Sort-Object - Property Name - Unique
110
+ $Permissions = $Permissions | Sort-Object - Property ScopeType
111
+ $Permissions = $Permissions | Sort-Object - Property IsLeastPrivilege
112
+ [array ]::Reverse($Permissions )
113
+ $MappingValue.Permissions = $Permissions
108
114
}
109
115
catch {
110
116
Write-Warning " Failed to fetch permissions: $ ( $PermissionsUrl ) ?requesturl=$ ( $MappingValue.Uri ) &method=$ ( $MappingValue.Method ) "
You can’t perform that action at this time.
0 commit comments