I have a requirement for creating the TeamMembership for some particular project (E.g project5 and project7) in a project hierarchy for the newly created user(E.g User1) under a workspace (E.g Workspace2). when some one click on the check box of Team Member then the permission level of that corresponding project become to Editor .
I have created the Userpermission for the user to Viewer level. I have attached the code that I have implemented. But it is not working.
Thanks in advance.