Create an Access to an Object
There are several ways to share access to an object:
- by share
- by Import an Access to an Object
- by access restrict using Uplink CLI
Share an object
You can create an access using the uplink share command using Create an Access to an Object. For example:
The --export-to flag is used to export the access to a file. This gives the following output:
Restrict an access
The command uplink access restrict allows you to create a restricted access grant using Create an Access to an Object.
An access generated using uplink access restrict with no arguments creates an access to your entire project with read permissions!
Example:
See the access restrict command reference for more actions.
Restrictions
The --readonly flag prevents all write operations (delete and write). Similarly, the --writeonly flag prevents all read operations (read and list).
By default, the access is read-only. To give full permissions, use --readonly=false
You may also indicate the duration of access by specifying a start and end time.
The list of all restrictions can be found share. Example:
See the access restrict and share commands reference for more actions.


