add back link to sp perms docs
This commit is contained in:
parent
39de7d03d8
commit
dea84eeb37
@ -241,6 +241,9 @@ func filterUserPermissions(ctx context.Context, perms []models.Permissionable) [
|
|||||||
// write - Design | Edit | Contribute (no difference in /permissions api)
|
// write - Design | Edit | Contribute (no difference in /permissions api)
|
||||||
// read - Read
|
// read - Read
|
||||||
// empty - Restricted View
|
// empty - Restricted View
|
||||||
|
//
|
||||||
|
// helpful docs:
|
||||||
|
// https://devblogs.microsoft.com/microsoft365dev/controlling-app-access-on-specific-sharepoint-site-collections/
|
||||||
roles := p.GetRoles()
|
roles := p.GetRoles()
|
||||||
|
|
||||||
entityID := ""
|
entityID := ""
|
||||||
@ -253,12 +256,12 @@ func filterUserPermissions(ctx context.Context, perms []models.Permissionable) [
|
|||||||
|
|
||||||
if gv2.GetApplication() != nil {
|
if gv2.GetApplication() != nil {
|
||||||
entityID = ptr.Val(gv2.GetApplication().GetId())
|
entityID = ptr.Val(gv2.GetApplication().GetId())
|
||||||
} else if gv2.GetDevice() != nil {
|
|
||||||
entityID = ptr.Val(gv2.GetDevice().GetId())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if gv2.GetDevice() != nil {
|
if gv2.GetDevice() != nil {
|
||||||
logm.With("device_id", ptr.Val(gv2.GetDevice().GetId()))
|
logm.With("device_id", ptr.Val(gv2.GetDevice().GetId()))
|
||||||
}
|
}
|
||||||
|
|
||||||
logm.Info("untracked permission")
|
logm.Info("untracked permission")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user