Skip to content

Commit

Permalink
Merge pull request #274 from aquasecurity/SLK-85955-resource-user-saa…
Browse files Browse the repository at this point in the history
…s-fix

Fix saas user resource
  • Loading branch information
ehardisty authored Sep 23, 2024
2 parents 09db674 + 7e0b26b commit af1ec61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (cli *Client) GetUser(name string) (*FullUser, error) {
apiPath := fmt.Sprintf("/api/v1/users/%s", name)
if cli.clientType == Saas || cli.clientType == SaasDev {
baseUrl = cli.tokenUrl
apiPath = fmt.Sprintf("/v2/users/%s/?expand=csproles,group", name)
apiPath = fmt.Sprintf("/v2/users/%s?expand=csproles,group", name)
}

request := cli.gorequest
Expand Down

0 comments on commit af1ec61

Please sign in to comment.