I am using the below code in my custom workflow process step. This workflow gets triggered once any project is created.
Users projectuser1, projectuser2 are valid Project users(users added to projects-administrators group) used for testing. 'ownerid', 'observerid' are the roleid's for owner and observer roles for this project template.
Are you aware if there are any privileges missing in the workflowSession to update the Project team? Do you know why there is an issue at
com.adobe.cq.projects.api.ProjectException: Unable to update team members for project /content/projects/sampleproject
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metadataMap)