Groups and Users
Description of users, groups, and privileges
Avi
Blackmore
Head Programmer/Administrator
2013
Agri ImaGIS Technologies, Inc.
Table of Contents
GroupsGroups are the mechanism used to group together users. A group represents a collection of users who share a particular relationship to Agri ImaGIS and to the customer;
exactly what that relationship is depends on the group. Particular groups could represent independent growers, crop consulting companies, seed dealers, chemical companies,
crop insurance companies or agencies, subdivisions within those businesses, or other entities. A particular organization which contracts with Agri ImaGIS is likely to be
assigned a "top-level" group, that is, a group with no parent; that group is considered the "master" or "controller" of the entire organization's activities with Satshot, and
the users in that group are responsible for overseeing those activities. They can, if needed, create child groups in which they can create new users, instead of adding them
to their "top-level" group. In turn, those child groups can have children of their own, which can further have child groups of their own, and so forth, nested in as many
"levels" as the customer desires. This can be done for several reasons: to further delegate responsibility, to isolate users from each other if they work within different
areas of responsibility, to represent customers of the organization, or for any other reason that they see fit.
Every group has several attributes. These are the name, description, parent, contact info, contact users, customer flag, and privileges. The name and description are
used for identification purposes: name gives the specific name of the group, while the description is intended to identify the group's purpose or type. For example, a
group which was meant to represent a particular grower could be identified in the description as "Grower". The parent identifies the parent group; if the group is
"top-level", then it has no parent. Contact info gives the address and phone number of the group (if applicable), while contact users are a list of users who are the
"business contacts" for the business entity that group represents (again, if applicable).
Group privileges control what user privileges members of that group can have, as well as what privileges child groups can have. The specific privileges, and rules for
how group and user privileges interact, are described in the Privilege Flags section.
The customer flag controls whether or not a group is a direct customer of Agri ImaGIS: groups with this flag set have their own subscription and credit balances.
Members of a customer group, or child groups of that group, have charges they incur counted against the balance of their customer group. All "top-level" groups are
customers, and have this flag set; child groups of those top-level groups may also have this flag set, in which case the child group has its own balance. In such a
case, charges incurred by members of that "child customer", or its own children, count against the child's balance, not the parent's (if any).
This is useful for handling cases where a large customer wishes to contract with Agri ImaGIS for services, but have some of its users pay for some things directly, such
as imagery credits. Or, the child groups could have balances, but not be allowed to make payments; in such a case, the parent group would pay for credits and then
transfer them to the child groups, allocating them a quota. These cases can be set up using the customer flag and the group's privileges. TODO: write up an example and
link here.
Groups are created with the create_group() method; the information for a particular group, including its privileges and (if the user has that privilege) the customer
flag, can be updated with update_group_info(). The groups visible to a given user can be obtained by calling get_visible_groups(). Users can see their own
group, the parents of their group up to the top of their group hierarchy, and the children of their group down to the bottom of their group hierarchy; they cannot see sibling
groups (other groups with the same parent as their group), or subgroups of sibling groups. This information is usually only needed for administrative purposes, not for
ordinary operations.
Privilege FlagsPrivilege flags are attributes of a group or user, which control what operations that user, or users in that group, can perform. In regular operation, the only flags
consulted are those on the user: group flags are only consulted when creating a new user, or when the group flags are changed (which can affect user flags). The names
of the flags, and what operations they control, are identical for both users and groups. However, the values those flags take on, and what they mean, differ slightly.
For users, a privilege flag is a boolean value. True means the user has that privilege, and false means the user does not. Group privilege flags, however, can take on
three values: GRANT, ALLOW, or DENY. GRANT means that all members of the given group MUST have that privilege set to true. DENY, on the other hand, means that all
members of that group MUST have the given privilege set to false. ALLOW means that users in the given group MAY have the privilege set to true; whether or not this
privilege is true for a given user can be set individually by members of a superior group.
There are three rules for how privileges may be set, either during group creation or when updating a group:
- Users can only change the privileges of child groups of their group, or of users who are members of those child groups. They can never change their own privileges,
those of their group (or members of their group), or of parent groups (and members of parent groups).
- If a group's parent has a privilege set to DENY, that group must also have the privilege set to DENY. In other words, child groups cannot have greater privileges
than their parent groups.
- A user cannot set a privilege on a child group, or on a user in a child group, that they do not possess as a user privilege. Even if their group has that privilege set
to ALLOW, if that privilege is false for that user, the user cannot set it on child groups or users that they create.
If a group privilege is changed to GRANT, all users in that group will have their corresponding user privilege set to true. If a group privilege is changed to DENY, all
child groups will have that privilege also set to DENY, and all members of the group and child groups will have their corresponding user privileges set to false. Changing a
group privilege to ALLOW will not change the user privileges for any group members. It will, however, allow child groups to have that group privilege set to ALLOW or GRANT,
if it was previously set to DENY on the parent group.
These are the privilege flags currently defined, along with their group defaults:
- viewscenes: Ability to search and view scenes. Default GRANT.
- analyze: Use of extraction and analysis methods. Default GRANT.
- precisionag: Precision Ag functionality: merging, shifting, coloring, painting, and dissolving. Default GRANT.
- export_processed: Exporting rasters in processed formats, except for RESCALE (requires separate privilege). Default GRANT.
- export_processed_rescale: Exporting rasters using RESCALE process. EXPORT_PROCESSED is also required. Default DENY.
- export_attributed: Exporting rasters in attributed formats. Default GRANT.
- export_vector: Exporting vector formats. Default GRANT.
- create_spreadmap: Creating spreadmaps from rasters. Default GRANT.
- create_soilmap: Creating soilmap vectors. Default GRANT.
- create_pointvector: Creating point vector spreadmaps from rasters. Default GRANT.
- create_testpoint: Creation of testpoint vectors. Default GRANT.
- create_grid: Creation of grid vectors. Default GRANT.
- use_attribclus: Allows search of attributed CLU database, and viewing the attribclu layer. Default DENY.
- set_fielddata: Set new field data for scouting and other fielddata records. Default GRANT.
- create_geoobjects: Creation of new fields, locations, and other geospatial objects. Default GRANT.
- modify_geoobjects: Renaming, changing geometries, or deleting geospatial objects. Default GRANT.
- save_datasets: Saving datasets to geospatial objects. Default GRANT.
- modify_datasets: Modification of saved datasets: renaming, deleting, or changing attribute table for saved vectors. Default GRANT.
- geotagged_photos: Uploading of geotagged photos. Default ALLOW.
- create_users: Creation of new users within user's group or child groups. Also covers modifying information of users in child groups
(not in user's current group). Default ALLOW.
- create_groups: Creation of new child groups. Also covers modifying information of child groups, or the user's current group. Default ALLOW.
- set_group_customer: Setting a child group to be a customer of AGI. Default DENY.
- make_payments: Making credit card payments for customer group (if user is member of a customer group). Default ALLOW.
- view_financials: View financial records for user's customer (closest group to user that is a customer, moving upwards). Default ALLOW.
- autoanalysis: Use of the iCue subsystem. Default GRANT.
- change_object_acls: Changing the ACLs on objects the user has access to. Default ALLOW.
- specialimagery: View special imagery (such as RapidEye). Default ALLOW.
Privilege flags for groups are set during group creation with create_group(), and can be changed later using update_group_info(). For users, see the next
section.
UsersUsers have a good deal of information associated with their accounts, which can be retrieved with get_my_user_info(). This method returns a large structure of
information, which includes the basic account information, group, user privilege flags, notification subscriptions and settings, info on the
user's customer group, and "client preferences", which are arbitrary key-value pairs storable by clients in order to keep track of a user's configuration options between
sessions.
Users are created using the create_user() method, and their information updated using update_user_info(). The privilege flags for users are also set using
these methods.
When logged in, users can see some other users of the system, namely members of their own group or of child groups. The list of visible users can be obtained using
get_visible_users(). This is usually only necessary when performing administrative duties, such as changing user information; it's not necessary for normal
operations.
Method ReferenceGroup and user creation and access:
| Prev |
Up |
Next |
| Basic Access and Map Services |
Understanding and Using the Satshot Services API, Version 2 |
Regions and Objects |
|
|