SetPrincipalPermissions skips processing now if the permissionList is empty or nil instead of returning an error in azuredevops/internal/service/permissions/utils/namespaces.go
@@ -301,7 +301,7 @@ func (sn *SecurityNamespace) getIdentitiesFromSubjects(principal *[]string) (*[]
// SetPrincipalPermissions sets ACLs for specifc token inside a security namespace
func (sn *SecurityNamespace) SetPrincipalPermissions(permissionList *[]SetPrincipalPermission) error {
if nil == permissionList || len(*permissionList) <= 0 {
- return fmt.Errorf("permissionMap is nil or empty")
+ return nil
}
permissionMap := map[string]SetPrincipalPermission{}
