I have built an app that allows different people in my team to upload multiple documents onto RStudio Connect. I am trying to use the acl_add_collaborator function to add a person who uploaded a certain document onto RStudio Connect a collaborator on that specific document.
Currently how the app works is that a person uploads a document onto RStudio Connect via the app, however in building the app I used the connect api package and because of the api_key that was created by me I am the only one who can make changes to the uploaded document.
Is there any one who can help me in figuring out how to add a person as a collaborator using the acl_add_collaborator function?
But, the app returns an error for some users who try to add themselves as collaborators using their usernames. Is there a limit to the number of usernames that the functions allows before cutting off the rest? Because the app would show an error and not add the user as a collaborator but, when I logon to Rstudio connect and add the user manually as a collaborator then there are no problems.
Interesting!! What is the error message you are getting? There shouldn't be any truncation of the usernames... but it is possible that there is multiplicity (i.e. a username cole and a username cole2 would conflict if you tried to search for cole, let's say).
In any case, specifics about the error happening would help us debug what is going on!
I checked if the user names were being typed in correctly, and they were. Each user has their personnel number as the username, so no two people will have similar user names.