ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Granting privileges to the Reviewer workspace components in PostgreSQL

Available with Data Reviewer license.

User permissions need to be granted to the schema tables for those who will edit or view the results in the Reviewer workspace. In pgAdmin or psql, grant permissions to the Reviewer workspace tables using roles.

Note:
Copying and pasting the examples may cause syntax errors.

This SQL query creates a script to revoke permissions granted directly to pmeditor and pmviewer users.

select 'REVOKE SELECT, INSERT, UPDATE, DELETE ON'|| tableowner || '.' || tablename || 'FROM 
pmeditor;' AS sqltext from pg_tables where tableowner = 'rev'
union all
select 'REVOKE SELECT, INSERT, UPDATE, DELETE ON' || tableowner || '.' || tablename || 'FROM
pmviewer;' AS sqltext from pg_tables where tableowner = 'rev';

This SQL query creates a script to grant permissions to the roles.

--role_rev_rev_editor
select 'GRANT SELECT, INSERT, UPDATE, DELETE ON' || tableowner || '.' || tablename || 'TO
role_rev_rev_editor;' AS sqltext
from pg_tables
where tableowner = 'rev';
--role_rev_rev_viewer
select 'GRANT SELECT ON' || tableowner || '.' || tablename || 'TO role_rev_rev_viewer; 'AS sqltxt
from pg_tables
where tableowner = 'rev';

--Grant roles to editor and viewer users
GRANT role_rev_rev_editor TO pmeditor;
GRANT role_rev_rev_viewer TO pmviewer;

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal