REST API: Include sudo-ability in GET response on /v2/users & create endpoint to alter sudo-ability of existing user

Bug #2039735 reported by Mark Boudreau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
Unassigned

Bug Description

Currently the snapd REST API has a means of extracting information about user accounts (https://snapcraft.io/docs/snapd-api#heading--users), but this information doesn't include the users' sudo-ability. Since the API allows creating users with a given sudo-ability, it would be nice to have this information included in the GET response.

If changing the sudo-ability one currently needs to remove the user then re-create with the updated sudo-ability state. Adding a new endpoint or "modify" action to the POST of "/v2/users" would simplify the action.

Changed in snapd:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.