guacamole-rest-api-documentation icon indicating copy to clipboard operation
guacamole-rest-api-documentation copied to clipboard

API endpoint for allowing user groups to have access to utilize Sharing Connection Profile access for connections

Open AustinLeath opened this issue 2 years ago • 7 comments

Is there a PATCH API endpoint for adding permissions for user groups to access sharing connection profiles? I do not see it documented here.

AustinLeath avatar Feb 28 '22 21:02 AustinLeath

Where I would expect it to be is under the "PATCH Assign Permissions to User Group" API endpoint image

AustinLeath avatar Feb 28 '22 21:02 AustinLeath

Where I would expect it to be is under the "PATCH Assign Permissions to User Group" API endpoint image

As you can see in the image above, there is only the ability to allow READ permission for specific connections, but not specific sharing profiles within that connection:

{ "op": "add", "path": "/connectionPermissions/{{userGroup}}", "value": "READ" },

AustinLeath avatar Feb 28 '22 21:02 AustinLeath

I asked this question in the guacamole mailing list and it looks like there is indeed a patch operation that is available for use. Here is the response that I got: [ { op: "add", path: "/sharingProfilePermissions/<profile_id>", value: "READ" } ]

AustinLeath avatar Mar 01 '22 20:03 AustinLeath

@ridvanaltun If I wanted to edit the Postman project that is listed in the readme how would I go about doing that? I have some things to add.

AustinLeath avatar Mar 01 '22 20:03 AustinLeath

@ridvanaltun If I wanted to edit the Postman project that is listed in the readme how would I go about doing that? I have some things to add.

I have never done but you can create a pull request via Postman: https://learning.postman.com/docs/collaborating-in-postman/version-control-for-collections/

or you can export and share your HTTP Request as a cURL command then I can update the Postman collection.

ridvanaltun avatar Mar 01 '22 20:03 ridvanaltun

@ridvanaltun If I wanted to edit the Postman project that is listed in the readme how would I go about doing that? I have some things to add.

I have updated the Postman link, you can fork the collection and you can send PR. The old link was static and it was not forkable.

ridvanaltun avatar Mar 01 '22 21:03 ridvanaltun

Thanks! I will take a look at this here in a few days,

AustinLeath avatar Mar 11 '22 10:03 AustinLeath