You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Grouper's views can be granted to schemas to make it possible to access Grouper data from SQL.  Note, if you do this you should keep track of what you grant to do some sanity tests on Grouper upgrades.  Note, some views are for reporting reasons and are not intended for real time data.  Check the views that you use to see the performance.

Best practices to using the SQL interface

  1. Do not use the Grouper schema for accesses to the Grouper SQL interface, make another schema which is readonly and only has access to the required data (where clause)
  2. Make a view on top of the Grouper tables/views and grant that to the other schema.  This is because when Grouper is upgraded the views are dropped (including grants), so they would be lost or need to be recreated

The main views to use are:

  • grouper_membership_lw_v: This view can be used for memberships or Grouper group privileges (e.g. if someone can ADMIN a group).  Note: make sure you have the proper where clause which selects the proper list (generally "members")
  • sdf
  • No labels