Author Topic: Query Restrictions - Converting to a single Table  (Read 1418 times)

Joe Wolken

  • Full Member
  • ***
  • Posts: 113
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
Query Restrictions - Converting to a single Table
« on: February 25, 2022, 08:55:22 AM »
I am working on an OnDemand  v.10.5 implementation that has over 400 user ids that each have Query Restrictions defined that limit them to accessing between 1 and 100 different Vendor Numbers.   There are about 30 different Application Groups that are indexed and restricted in this way.

The issue is that there is a constant flow of change requests to add or remove Vendor Numbers from different User IDs.  This requires the OnDemand System Administrator to update 30 Application Groups for every change request.

The solution for this is to consolidate all of the Query Restrictions to a generic table or file with two columns, UserID and VendorNumber to contain all of the entries, then update the *PUBLIC Query Restriction to reference this table. as referenced in the IBM link:

https://www.ibm.com/support/pages/content-manager-ondemand-defined-macros-sql

HOWEVER, does anyone have an idea of how to automate the conversion of thousands of query restrictions to a single generic file.  I can use OnDemand Admin client to create a report of App Group Permissions that generates a TXT file with the information, but now to translate that information to a single table??  Manual data entry of SQL Insert Into commands in too much.

Has anyone solved this?  Are there any suggestion on the best way to approach automating this one-time conversion?

Thanks,
Joe
#Installation #Upgrade #Migration #Administration #Integration #Customization #Training, and more!

Call: 512-402-1123
email: wolkenj@oascorp.com 
Click: http://www.OASCorp.com

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Query Restrictions - Converting to a single Table
« Reply #1 on: February 25, 2022, 12:28:30 PM »
Doesn't it make more sense to define these as groups, and add and remove users from the groups?  There's no discussion about how Folders fit into this situation - are you accessing AGs directly through the ODWEK API or one of the command line clients?

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR