Secret Templates permission issue #251
Unanswered
chrisallennc
asked this question in
Q&A : Module
Replies: 1 comment 4 replies
-
Are you limiting permissions for Secret Templates? Meaning, did you modify the Everyone group to not have permission to all templates: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're currently working on switching over from using the SOAP API/in-house built PowerShell module to the REST API/this module and run into an issue. When attempting to create a secret we need to get the template to provide the ID. Using "Search-TssSecretTemplate" as shown in the example we get "{ "errorCode": "API_AccessDenied", "message": "Access Denied" }". Using "Invoke-WebRequest "$secretServerUrl/winauthwebservices/api/v1/secret-templates" yields the same error.
The SOAP API function "GetSecretTemplates" returns the templates without error. This is going to the same server with same user and both using Windows Authentication.
If I directly provide the template ID it'll return the template. "Get-TssSecretTemplate -TssSession $tssSession -id 6034" runs without error. But that's not really scalable since we have quite a few templates as the IDs can change between environments but the name always stays the same. Also our users are used to referring to the templates by name.
Is there an additional permission the user needs inside the application? Or perhaps is this a bug with permissions not being properly applied?
Beta Was this translation helpful? Give feedback.
All reactions