Keeper |
Class | Description | |
---|---|---|
AccountTransferResult | Defines Transfer Account Result properties | |
AuditLogExtensions | Enterprise Audit Log access methods. | |
DeviceApprovalData | Represent Device Approval Queue data. | |
EnterpriseData | Represents decrypted basic Enterprise data structures: Nodes, Users, Teams | |
EnterpriseException | Cannot proceed with enterprise operation. | |
EnterpriseExtensions | Miscellaneous Enterprise Methods | |
EnterpriseLoader | Represents Keeper Enterprise connection that incrementally loads requested enterprrise data. | |
EnterpriseManagedCompany | Represents Enterprise Managed Company. | |
EnterpriseNode | Represents Enterprise Node. | |
EnterpriseQueuedTeam | Represents Queued Team | |
EnterpriseRole | Represents Enterprise Role | |
EnterpriseTeam | Represents Enterprise Team. | |
EnterpriseUser | Represents Enterprise User | |
InviteUserOptions | Defines optional Invite User properties | |
ManagedCompanyData | Represends Managed Companies enterprise data. | |
ManagedCompanyLicenseAddOn | Represends Managed Company Add-On | |
ManagedCompanyOptions | Represends Managed Companies create/update options | |
QueuedTeamData | Represents Queued Team Enterprise Plugin | |
RoleData | Represents Role enterprise data. |
Interface | Description | |
---|---|---|
IEnterpriseDataManagement | Defines methods for modifying enterprise users and teams. | |
IMspManagement | Defines Managed Company actions | |
IQueuedTeamData | Defines Queued Team storage | |
IRoleData | Defines Role enterprise data. |
Enumeration | Description | |
---|---|---|
UserStatus | Specifies Enterprise User statuses. |
using System.Linq; using System.Threading.Tasks; using KeeperSecurity.Authentication; using KeeperSecurity.Enterprise; internal static class Program { private static async Task Main() { IAuthentication auth = await ConnectToKeeperAs("username@company.com"); if (auth.AuthContext.IsEnterpriseAdmin) { // Load base enterprise data. var enterprise = new EnterpriseData(); var enterpriseLoader = new EnterpriseLoader(auth, new[] { enterprise }); await enterpriseLoader.Load(); // Find team with name "Google". var team = enterprise.Teams .FirstOrDefault(x => string.Equals(x.Name, "Google", System.StringComparison.InvariantCultureIgnoreCase)); if (team == null) { // Create team. team = await enterprise.CreateTeam(new EnterpriseTeam { Name = "Google", RestrictEdit = false, RestrictSharing = true, RestrictView = false, }); } // Add users to the "Google" team. await enterprise.AddUsersToTeams( new[] { "username@company.com", "username1@company.com" }, new[] { team.Uid }); } } }