This is something that I've wondered about here and there over the years, but never really had a good answer to. How is one intended to determine effective permissions for the interactive user at runtime?
There is edsaObjectRightsEffective, but that only tells you effective rights at the object-level, not the attribute level. There is edsvaATLinksEffective, which should work, but that means I would have to loop through all of the templates, calculate/expand group membership for each applied item, and accumulate them all into a table to determine effective rights - a very resource-intensive (aka slow) proposition, I'm sure. Active Roles must have already calculated this, but I cannot seem to figure out how to access this. I tried querying nTSecurityDescriptor and edsaActiveDirectoryACEs, but neither of these are accessible to a delegated user.
Obviously both the MMC and Web interface have some kind of mechanism for making this determination (how else would the product know that the description attribute should be rendered read-only because the interactive user does not have write privileges to it, for example), but I'm too dumb to figure it out.
TL;DR: How do you programmatically determine if the interactive user has privileges to modify the description attribute on a user?
Thanks!
