Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Metadata Admin privilege
fatboytim
Hi,
I'm trying to determine whether the logged on user has the Metadata Admin privilege, and will enable/disable options depending on the outcome.
This is a library privilege, but it appears I can only find out whether the user has it by iterating through all Workspaces/Workgroups/PrivilegeAssignments which is obviously not overly efficient. So first question - is there another/better way?
Second. I've tried manually giving myself the privilege in the database (PRV_GRANT) table, and it works - I can alter the metadata. However, when checking the privileges using the method I've just described, it appears that I don't have the metadata_admin privilege granted??
Thanks
Find more posts tagged with
Comments
dbguy
In 5.0 we introduced Library.isPrivilegeEffectivelyGranted() exactly for what you described.