I'm trying to get the role name (from the role DN) in a provisioning policy entitlement. I can get the entitlement to work if I hardcode the role DN, but if I try to extract the role name (from the errolename attribute) I get an error that states " 'Role' not found." Here's the PPe code - I'm provisioning TAM group entitlements:
// the following code works fine
I've pointed out the code (or line) that is failing and the code that doesn't fail and correctly sets and provisions the entitlement. I'm obviously not understanding how the Role extension is working from the documentation. I thought that if you give the Role constructor a role DN it should return the directory object and from there I thought I should be able to retrieve the "simple" name for the role from the errolename attribute.
If anyone could point out the error of my ways, it would be greatly appreciated.