I'm trying to write a method to Export SQL Privileges from an instance by namespace, user, or roles. I've found two classes that might work:
- ##class(Security.Users).Export
- ##class(Security.SQLPrivileges).Export
One (Security.Users) exports an XML file and the other (Security.SQLPrivileges) exports an SQL file.
Neither of these options allows me to specify specific users or roles to export so I'll have to use them in tandem with something else. Is there something else that I should be using or do I need to find a way to filter on the backend with regular expressions or the like?