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

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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