Skip to content

Commit

Permalink
PowerCommander: uddate .Net SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-keeper committed May 18, 2022
1 parent ca5b352 commit 349e77a
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 51 deletions.
215 changes: 166 additions & 49 deletions KeeperSdk/KeeperSdk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@
</summary>
<returns>Awaitable Task</returns>
</member>
<member name="M:KeeperSecurity.Authentication.IAuthentication.AuditEventLogging(System.String,KeeperSecurity.Commands.AuditEventInput)">
<exclude/>
</member>
<member name="T:KeeperSecurity.Authentication.IAuthContext">
<summary>
Defines properties of connected user.
Expand Down Expand Up @@ -682,6 +685,9 @@
<member name="P:KeeperSecurity.Authentication.AuthCommon.SupportRestrictedSession">
<exclude/>
</member>
<member name="M:KeeperSecurity.Authentication.AuthCommon.AuditEventLogging(System.String,KeeperSecurity.Commands.AuditEventInput)">
<exclude/>
</member>
<member name="M:KeeperSecurity.Authentication.AuthCommon.Logout">
<inheritdoc/>
</member>
Expand Down Expand Up @@ -2436,44 +2442,29 @@
<param name="fullName">Full Name</param>
<returns>Invited User</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.EnterpriseData.SetUserLocked(KeeperSecurity.Enterprise.EnterpriseUser,System.Boolean)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.EnterpriseData.DeleteUser(KeeperSecurity.Enterprise.EnterpriseUser)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.EnterpriseData.TransferUserAccount(KeeperSecurity.Enterprise.IRoleData,KeeperSecurity.Enterprise.EnterpriseUser,KeeperSecurity.Enterprise.EnterpriseUser)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.EnterpriseData.CreateTeam(KeeperSecurity.Enterprise.EnterpriseTeam)">
<summary>
Creates Enterprise Team.
</summary>
<param name="team">Enterprise Team</param>
<returns>Created Team</returns>
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.EnterpriseData.UpdateTeam(KeeperSecurity.Enterprise.EnterpriseTeam)">
<summary>
Updates Enterprise Team
</summary>
<param name="team">Enterprise Team</param>
<returns>Updated Team</returns>
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.EnterpriseData.DeleteTeam(System.String)">
<summary>
Deletes Enterprise Team.
</summary>
<param name="teamUid">Enterprise Team UID.</param>
<returns>Awaitable task.</returns>
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.EnterpriseData.AddUsersToTeams(System.String[],System.String[],System.Action{System.String})">
<summary>
Add Enterprise User(s) to Team(s).
</summary>
<param name="emails">A list of user emails</param>
<param name="teamUids">A list of team UIDs</param>
<param name="warnings">A callback that receives warnings</param>
<returns>Awaitable task.</returns>
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.EnterpriseData.RemoveUsersFromTeams(System.String[],System.String[],System.Action{System.String})">
<summary>
Removes Users(s) from Team(s)
</summary>
<param name="emails">A list of user emails</param>
<param name="teamUids">A list of team UIDs</param>
<param name="warnings">A callback that receives warnings</param>
<returns>Awaitable task.</returns>
<inheritdoc/>
</member>
<member name="T:KeeperSecurity.Enterprise.NodeDictionary">
<exclude/>
Expand Down Expand Up @@ -2675,14 +2666,80 @@
Enterprise Node ID
</summary>
</member>
<member name="P:KeeperSecurity.Enterprise.InviteUserOptions.SuppressEmail">
<member name="T:KeeperSecurity.Enterprise.IEnterpriseDataManagement">
<summary>
Callback method that receives enterprise invitation code.
When provided the enterprise invitation email will not be sent.
Defines methods for modifying enterprise users and teams.
</summary>
<seealso cref="!:VaultOnline"/>
</member>
<member name="T:KeeperSecurity.Enterprise.IEnterpriseDataManagement">
<exclude/>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.InviteUser(System.String,KeeperSecurity.Enterprise.InviteUserOptions)">
<summary>
Invides User to Enterprise.
</summary>
<param name="email">User email</param>
<param name="options">Invided user options</param>
<returns>Invited User</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.SetUserLocked(KeeperSecurity.Enterprise.EnterpriseUser,System.Boolean)">
<summary>
Locks or Unlocks Enterprise User.
</summary>
<param name="user">Enterprise User</param>
<param name="locked">Lock flag</param>
<returns>User</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.DeleteUser(KeeperSecurity.Enterprise.EnterpriseUser)">
<summary>
Deletes Enterprise User.
</summary>
<param name="user">Enterprise User</param>
<returns>Task</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.TransferUserAccount(KeeperSecurity.Enterprise.IRoleData,KeeperSecurity.Enterprise.EnterpriseUser,KeeperSecurity.Enterprise.EnterpriseUser)">
<summary>
Transfers Enterprise User account to another user.
</summary>
<param name="roleData">Enterprise Role data</param>
<param name="fromUser">Enterprise User to transfer account from</param>
<param name="targetUser">Target Enterprise User</param>
<returns>Task</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.CreateTeam(KeeperSecurity.Enterprise.EnterpriseTeam)">
<summary>
Creates Enterprise Team.
</summary>
<param name="team">Enterprise Team</param>
<returns>Created Team</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.UpdateTeam(KeeperSecurity.Enterprise.EnterpriseTeam)">
<summary>
Modifies Enterprise Team.
</summary>
<param name="team">Enterprise Team</param>
<returns>Updated Team</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.DeleteTeam(System.String)">
<summary>
Deletes Enterprise Team.
</summary>
<param name="team">Enterprise Team</param>
<returns>Task</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.AddUsersToTeams(System.String[],System.String[],System.Action{System.String})">
<summary>
Adds Users to Team.
</summary>
<param name="teamUid">Team Uid</param>
<returns>Task</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IEnterpriseDataManagement.RemoveUsersFromTeams(System.String[],System.String[],System.Action{System.String})">
<summary>
Removes Users(s) from Team(s)
</summary>
<param name="emails">A list of user emails</param>
<param name="teamUids">A list of team UIDs</param>
<param name="warnings">A callback that receives warnings</param>
<returns>Awaitable task.</returns>
</member>
<member name="T:KeeperSecurity.Enterprise.IEnterpriseEntity">
<exclude />
Expand Down Expand Up @@ -3127,69 +3184,102 @@
<exclude />
</member>
<member name="T:KeeperSecurity.Enterprise.IRoleData">
<exclude/>
</member>
<member name="T:KeeperSecurity.Enterprise.RoleData">
<summary>
Represents Role enterprise data.
Defines Role enterprise data.
</summary>
</member>
<member name="P:KeeperSecurity.Enterprise.RoleData.Entities">
<exclude/>
</member>
<member name="P:KeeperSecurity.Enterprise.RoleData.Roles">
<member name="P:KeeperSecurity.Enterprise.IRoleData.Roles">
<summary>
Get a list of all roles in the enterprise
</summary>
</member>
<member name="P:KeeperSecurity.Enterprise.RoleData.RoleCount">
<member name="P:KeeperSecurity.Enterprise.IRoleData.RoleCount">
<summary>
Gets the number of all roles in the enterprise.
</summary>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.TryGetRole(System.Int64,KeeperSecurity.Enterprise.EnterpriseRole@)">
<member name="M:KeeperSecurity.Enterprise.IRoleData.TryGetRole(System.Int64,KeeperSecurity.Enterprise.EnterpriseRole@)">
<summary>
Gets the enterprise role assocoated with the specified ID.
</summary>
<param name="roleId">Enterprise Role ID</param>
<param name="role">When this method returns <c>true</c>, contains requested enterprise role; otherwise <c>null</c>.</param>
<returns><c>true</c> if the enterprise contains a role with specified ID; otherwise, <c>false</c></returns>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetUsersForRole(System.Int64)">
<member name="M:KeeperSecurity.Enterprise.IRoleData.GetUsersForRole(System.Int64)">
<summary>
Gets a list of user IDs for specified role.
</summary>
<param name="roleId">Enterprise Role ID.</param>
<returns>List of Enterprise User IDs.</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetRolesForUser(System.Int64)">
<member name="M:KeeperSecurity.Enterprise.IRoleData.GetRolesForUser(System.Int64)">
<summary>
Gets a list of role IDs for specified user.
</summary>
<param name="userId">Enterprise User ID.</param>
<returns>List of Enterprise Role IDs</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetTeamsForRole(System.Int64)">
<member name="M:KeeperSecurity.Enterprise.IRoleData.GetTeamsForRole(System.Int64)">
<summary>
Gets a list of team UIDs for specified role.
</summary>
<param name="roleId">Enterprise Role ID.</param>
<returns>List of Enterprise Team UIDs.</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetRolesForTeam(System.String)">
<member name="M:KeeperSecurity.Enterprise.IRoleData.GetRolesForTeam(System.String)">
<summary>
Gets a list of role IDs for specified team.
</summary>
<param name="teamUid">Team UID.</param>
<returns>List of Enterprise Role IDs</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetEnforcementsForRole(System.Int64)">
<member name="M:KeeperSecurity.Enterprise.IRoleData.GetEnforcementsForRole(System.Int64)">
<summary>
Gets a list of role enforcements for specified role.
</summary>
<param name="roleId">Enterprise Role ID.</param>
<returns>List of Role Enforcements</returns>
</member>
<member name="M:KeeperSecurity.Enterprise.IRoleData.GetRoleKey(System.Int64)">
<summary>
Gets role key.
</summary>
<param name="roleId">Enterprise Role ID.</param>
<returns>Role Key</returns>
</member>
<member name="T:KeeperSecurity.Enterprise.RoleData">
<summary>
Represents Role enterprise data.
</summary>
</member>
<member name="P:KeeperSecurity.Enterprise.RoleData.Entities">
<exclude/>
</member>
<member name="P:KeeperSecurity.Enterprise.RoleData.Roles">
<inheritdoc/>
</member>
<member name="P:KeeperSecurity.Enterprise.RoleData.RoleCount">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.TryGetRole(System.Int64,KeeperSecurity.Enterprise.EnterpriseRole@)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetUsersForRole(System.Int64)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetRolesForUser(System.Int64)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetTeamsForRole(System.Int64)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetRolesForTeam(System.String)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetEnforcementsForRole(System.Int64)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetPrivilegesForRoleAndNode(System.Int64,System.Int64)">
<summary>
Gets a list of privileges for specified role and node
Expand All @@ -3204,6 +3294,9 @@
</summary>
<returns></returns>
</member>
<member name="M:KeeperSecurity.Enterprise.RoleData.GetRoleKey(System.Int64)">
<inheritdoc/>
</member>
<member name="T:KeeperSecurity.Enterprise.RoleDictionary">
<exclude/>
</member>
Expand Down Expand Up @@ -3809,6 +3902,12 @@
</summary>
<returns>Awaitable task</returns>
</member>
<member name="M:KeeperSecurity.Vault.VaultOnline.AuditLogRecordOpen(System.String)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Vault.VaultOnline.AuditLogRecordCopyPassword(System.String)">
<inheritdoc/>
</member>
<member name="M:KeeperSecurity.Vault.VaultOnline.CreateRecord(KeeperSecurity.Vault.KeeperRecord,System.String)">
<inheritdoc/>
</member>
Expand Down Expand Up @@ -3952,6 +4051,12 @@
Record Types Schema: Record Field definition.
</summary>
</member>
<member name="M:KeeperSecurity.Vault.RecordTypeField.#ctor(System.String)">
<summary>
Initializes a new instance of the RecordTypeField class
</summary>
<param name="fieldName">Field Name</param>
</member>
<member name="M:KeeperSecurity.Vault.RecordTypeField.#ctor(System.String,System.String)">
<summary>
Initializes a new instance of the RecordTypeField class
Expand Down Expand Up @@ -5378,6 +5483,18 @@
Gets or Sets automatic sync down flag.
</summary>
</member>
<member name="M:KeeperSecurity.Vault.IVault.AuditLogRecordOpen(System.String)">
<summary>
Records "open_record" audit event for enterprise accounts
</summary>
<param name="recordUid"></param>
</member>
<member name="M:KeeperSecurity.Vault.IVault.AuditLogRecordCopyPassword(System.String)">
<summary>
Records "copy_password" audit event for enterprise accounts
</summary>
<param name="recordUid"></param>
</member>
<member name="M:KeeperSecurity.Vault.IVault.CreateRecord(KeeperSecurity.Vault.KeeperRecord,System.String)">
<summary>
Creates a password record.
Expand Down
2 changes: 1 addition & 1 deletion PowerCommander/Enterprise.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ function Remove-KeeperManagedCompany {
}

$enterprise.mspData.RemoveManagedCompany($mc.EnterpriseId).GetAwaiter().GetResult() | Out-Null
Write-Information -MessageData "Removed Managed Company `"${mc.EnterpriseName}`" ID: ${mc.EnterpriseId}"
Write-Information "Removed Managed Company `"$($mc.EnterpriseName)`" ID: $($mc.EnterpriseId)"
}
New-Alias -Name krmc -Value Remove-KeeperManagedCompany

Expand Down
Binary file modified PowerCommander/KeeperSdk.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion PowerCommander/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To install the PowerCommander module copy PowerCommander\ directory to
| Grant-KeeperRecordAccess | kshr | Shares a record with user
| Revoke-KeeperRecordAccess | kushr | Removes record share from user
| Grant-KeeperSharedFolderAccess | kshf | Adds a user or team to a shared foler
| Revoke-KeeperSharedFolderAccess| kushf | Adds a user or team to a shared foler
| Revoke-KeeperSharedFolderAccess| kushf | Removes a user or team from a shared foler

### Enterprise Cmdlets
| Cmdlet name | Alias | Description
Expand Down

0 comments on commit 349e77a

Please sign in to comment.