Create setpermissionsad_PG_SP

Postgress function used in project creation to write permissions directly to next_gen_permissions table.

Creates <Project> Publisher, <Project> Editor, <Project Viewer> groups.

Permissions can be edited, permission 1 = allow, 2 = deny.  Comment out the permission line to set permission to inherit.

AD groups must be passed to function, "SELECT setpermissionsad(<project>,<editor AD group>, <publisher AD group>, <viewer AD group>);"

can be called via Powershell script