Keeper-Security / keeper-sdk-dotnet

.Net and PowerShell version of Keeper Commander, a CLI and SDK interface for the Keeper Security platform.
https://docs.keeper.io/secrets-manager/commander-cli/using-commander/dotnet-powershell
MIT License
29 stars 20 forks source link

PutUserToSharedFolder Method Fails to Update Existing Users' Permissions in Shared Folder - Error: (key type required) #135

Open YoussefFenetre opened 2 days ago

YoussefFenetre commented 2 days ago

I'm experiencing an issue with the Keeper SDK when trying to update the permissions of existing users in a shared folder using the PutUserToSharedFolder method. While adding new users works correctly, attempting to update existing users' permissions results in an error indicating that a key type is required.

Steps to Reproduce:

  1. Use the PutUserToSharedFolder method to add new users to a shared folder successfully.
  2. Attempt to update the permissions of an existing user in the shared folder using the same method.
  3. Observe that the method fails with an error message.

Error Message and Stack Trace:

Error adding users to shared folder: An error has occurred. Please check if an update is available for your device on the App Store or the Keeper Security website. If you continue to receive this error, please email support@keepersecurity.com or contact us at https://keepersecurity.com/support.html and let us know that error code (key type required) has occurred.

Error adding users to shared folder: at KeeperSecurity.Authentication.KeeperEndpoint.ExecuteRest(String endpoint, ApiRequestPayload payload) at KeeperSecurity.Authentication.AuthCommon.ExecuteAuthRest(String endpoint, IMessage request, Type responseType, Int32 apiVersion) at KeeperSecurity.Authentication.AuthExtensions.ExecuteAuthRest[TC,TR](IAuthentication auth, String endpoint, TC request, Int32 apiVersion) at KeeperSecurity.Vault.VaultOnline.PutUserToSharedFolder(String sharedFolderUid, String userId, UserType userType, ISharedFolderUserOptions options) at MyAppNamespace.ViewModel.FolderManagerViewModel.AddUsersToSharedFolder(String sharedFolderUid)

Additional Information:

Behavior Observed:

Analysis:

Request:

Thank you for your assistance!

If any additional information is needed, please let me know.

sk-keeper commented 2 days ago

Are you trying to add yourself to a shared folder?

sk-keeper commented 1 day ago

This issue could be duplicated when a user adds/modifies its permissions in a shared folder. Add permissions error originates at the .Net SDK. The fix can be release any time. Update its own permissions is a backend issue. It is already fixed by the backend team. It is hard to tell when the fix will be released.