I want to update user's metadata on process. and that event is intermediary timer event's output variable.
output variable value script is like this. (author_id is user(composer)'s email address)
<#assign user_data = get_user_metadata(author_id)>
<#assign count = user_data.vacation + my_array.period[0]?number>
${P_change_metadata(author_id, "vacation", count)}
It means that user's vacation count is modified and saved. But when this event processed, it occurers error like this.
com.runmyprocess.error.config.UnknownUser: Unauthorized: [user email address] . User is unknown
Can you check this, and Can you guide the best practice like this case?
Regards,
Alan.
Thanks for your comments. Would you explain more about 2 step regarding hard-coded admin credential? Sorry, I can't understand perfectly.
What is the core difference between metadata and preference?
I knew that metadata can be modifed by admin profile only (not user profile)
I knew that preference can be modified by user(him/herself) profile (not admin profile)
In case of user's vacation count from my project, user submit vacation request and approver approve and final approve step update user's vacation count. (whether it is metadata or preferences)
and sometimes, administrator have to modify user's vacation count on User Management application or IDE user config.
Would you guide what is the best practice?
Regards,
Alan.