Hi,
I am trying to use WOM API to manage trustee. I have tried to use the mpadmin user to login, which is successful.
However, when I try to create a trustee, I get PrivilegeException. Does this mean that I don't have the privilege, or can it be because of some other errors?
Here is a snippet of my test code:
Collection trustees = workspace.getAllTrusteeContainerMembers();
TrusteeContainer tc = (TrusteeContainer) trustees.iterator.next();
Group g = (Group) tc.createChildTrustee(Trustee.EnumTrusteeClass.GROUPCLASS);
g.setPropertyValue("BASE::RDN", "MyGroup");
g.setPropertyValue("BASE::IS_ENABLED", "true");
g.setPropertyValue("BASE:

REFERENCES_FACILITY", workspace.getFacility().getId());
g.setPropertyValue("BASE::HOME_PAGE_WORKSPACE", workspace.getId());
g.setPropertyValue("BASE::TRUSTEE_TYPE", new Integer(1));
g.update();
Btw, what is the proper value to put for BASE::TRUSTEE_TYPE. I've tried from 1 to 4 (with 4 being the example in the guide to create User trustee).