Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenconnect permissons #14

Open
CodeNameTheOnlyOne opened this issue Jun 24, 2022 · 1 comment
Open

Screenconnect permissons #14

CodeNameTheOnlyOne opened this issue Jun 24, 2022 · 1 comment

Comments

@CodeNameTheOnlyOne
Copy link

what permissions are required for the api user to connect.
i attempted to create a group with only ViewSessionGroup granted to all session groups.
i plan on only using this to export data so only read access is needed.
when i connect i get this.
Connect-CWC -Server $Server -Credentials $Credentials
Connect-CWC : An exception has been thrown.
--> The remote server returned an error: (401) Unauthorized.
An error has been thrown.
-->
--> {"errorType":"SecurityException","message":"Needs permission","detail":null}
at Invoke-CWCWebRequest, C:\Program
Files\WindowsPowerShell\Modules\ConnectWiseControlAPI\0.3.0.0\Private\Invoke-CWCWebRequest.ps1: line 25
at Get-CWCSessionGroup, C:\Program
Files\WindowsPowerShell\Modules\ConnectWiseControlAPI\0.3.0.0\Public\SessionGroupService\Get-CWCSessionGroup.ps1: line
12
at Connect-CWC, C:\Program
Files\WindowsPowerShell\Modules\ConnectWiseControlAPI\0.3.0.0\Public\Authentication\Connect-CWC.ps1: line 37
at , : line 1
At line:1 char:1

  • Connect-CWC -Server $Server -Credentials $Credentials
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Connect-CWC
    
    

when i add my user to my admin group it connects with no issues.

any idea what permissions are needed to get connected?

@Luke-Williams9
Copy link

Looks like you need the Global Permission 'ManageSessionGroups' no matter what, and then any or all of the 'ViewSessionGroup' permissions under Scoped Permissions - AllSessionGroups and/or its children.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants