1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-16 16:23:41 +00:00

recursively flatten out nested groups for a user

This commit is contained in:
Kyle Spearrin
2017-05-13 00:37:27 -04:00
parent f3646aa1e6
commit f256022071
2 changed files with 23 additions and 17 deletions

View File

@@ -17,12 +17,11 @@ namespace Bit.Core.Models
{
public string Name { get; set; }
public HashSet<string> Members { get; set; } = new HashSet<string>();
public List<GroupEntry> GroupMembers { get; set; } = new List<GroupEntry>();
}
public class UserEntry : Entry
{
public string Email { get; set; }
public List<GroupEntry> Groups { get; set; } = new List<GroupEntry>();
public HashSet<string> Groups { get; set; } = new HashSet<string>();
}
}