Hi,
I am trying to set the admins of a project like that:
user.addRole(username, "Administrators");
But the user becomes a developer instead of administrator. What could be the reason?
Cheers,
Petya
It should be called like that: externalUser.addRole(externalProjectId, roleName)
Yes, thank you! I replaced the user name with the project and it is working now.
Another similar question: how can I not set the person who imports the project to be a leader ot the same project? In my case, not the project leaders will migrate their projects, but other people.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to set the lead user on ExternalProject, then it will be used instead of the currently logged in user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.