Adding permissions to your ingested data

For GeoSpock database users to be able to access and query a dataset, they need to be granted permission to do that. Access to the ingested data is controlled by using groups. Each group contains one or more GeoSpock database users, and can be granted permission to use one or more datasets. This means if you ingest a dataset, to be able to query that ingested data, you will need to be a member of a group that has been granted permission to access that dataset. You use the GeoSpock CLI to create groups, assign users to those groups and give groups permission to access a dataset. For more information about the GeoSpock CLI, see The GeoSpock CLI.

Giving a GeoSpock database user permission to access a dataset

To give a GeoSpock database user permission to access a dataset, you need to:

Once you have done this, you can give a group of GeoSpock database users permission to access a specified dataset using the following command:

geospock dataset-permission-grant --dataset-id nycTaxiData --group-name newGroup

For example:

geospock dataset-permission-grant --dataset-id nycTaxiData --group-name newGroup 
[
    {
        "entityId": "newGroup"
    }
]

For more information about this command, use the GeoSpock CLI's help command.

Removing a group's permission from a dataset

If you want to remove the permission from a group to access a specified dataset, use the following command:

geospock dataset-permission-revoke --dataset-id myData --group-name newGroup

For example:

geospock dataset-permission-revoke --dataset-id nycTaxiData --group-name newGroup 
[]

For more information about this command, use the GeoSpock CLI's help command.