User and Group Administration¶
UserProfile Model¶
Each user has a profile with:
- organization
- phone
- active dataset selection
Group Setup¶
Superusers can access:
/auth/admin/setup-groups/
Default groups created by setup flow:
- Public Users
- Administrators
Access Evaluation¶
- Parcel visibility/editability also depends on owner/staff/public rules
- Analytics and reports require at least
VIEWERon the active dataset - Direct exports/downloads require at least
EDITORon the active dataset - Django
is_staffandis_superuserremain authoritative for admin access
Dataset and Grant Lifecycle¶
Parcel Dataset and Dataset Role Grant are managed in Django admin.
Dataset management¶
- Create datasets with unique
slugand human-readablename. - Activate/deactivate datasets with admin actions (
Activate selected datasets,Deactivate selected datasets). Load only selected datasetsis available when you intentionally need a single operational dataset.
Grant management¶
- Use Group Role Grants inline for primary access assignment.
- Use User Role Grants inline for exception handling.
- One grant maps exactly one dataset + one principal (user or group) + one role.
- Role hierarchy is:
APPROVER > REVIEWER > EDITOR > VIEWER.
Audit expectations¶
- New grant records capture
created_byautomatically from the admin actor. - Grant rows include
created_atandupdated_attimestamps. - Use the
Dataset Role Grantsadmin list with filters (dataset,role,group,user) to review and audit current assignments.