BookmarkSubscribeRSS Feed
Sa646
Calcite | Level 5

How do i access metadata from a custom task in EG.

And from here is there any way to access user roles and groups

1 REPLY 1
ChrisHemedinger
Community Manager

Is the goal to enumerate all user roles and groups?  There isn't an API to do that in the custom task interface.  You would have to write your own metadata queries by using the OMI interface.

You can get a handle to this in a custom task via the SAS.Tasks.Toolkit:

SAS.Tasks.Toolkit.Helpers.SasMetadataProfile.GetActiveProfile().GetSasMetadataConnection()

Cast the result to SAS.IOMI.  You will need to add a reference to the SASOMIInterop.dll in the EG application directory.

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1105 views
  • 0 likes
  • 2 in conversation