Our environment is
Plone 4.3.3 (4308)
Python 2.7.6 (default, Jun 2 2016, 08:31:24) [GCC 4.8.4]
PIL 2.3.0 (Pillow)
I am using Plomino with Plone 4.3.3 and I had added a piece of code on a PlominoAgent to change the email address of another user with the system. I have manager permissions on my login but I am still seeing this error
line 42, in agent_append_modify_doc_info
Unauthorized: You are not allowed to access 'setMemberProperties' in this context
The code I am using is
from Products.CMFCore.utils import getToolByName
membership = getToolByName(context, 'portal_membership')
member = membership.getMemberById(user_id)
Log('Get Member email - ' + str(member.getProperty('email')))
Log('Member object - ' + str(member))
The User ID exists on the system and both log statements returns the current values. Interesting, I always though the second print statement returned "User object" but strangely I see the UserID being returned.
I am not sure what is causing this problem and the code I have used is from Plone's Member Profile documentation. Kinda ran out of ideas too.
Any further guidance would be much appreciated.