Page MenuHomePhabricator

Add possibility to add user access to repository via shell
Closed, ResolvedPublic

Description

I recently activated spaces in my local Phabricator installation and thereby accidentally locked some users out of arepository I had no access to. The colleague who "owns" this repository was on holiday and the oder users needed access again. So I thought I would just add a policy to the repository that would give me access, move the repository from my restrictive default space into a more permissive one and remove my access again. But even tough I have an administrative account on Phabricator and root access to the server it is running on, I was unable to access the repository to change its configuration. (I could of course access all the files in the repository since I have full access to the file system of the server, but that wouldn't help in this situation.) The only way for me to give the other users their access back was to set the default space to be accessible by all which defeats the purpose of the spaces. I will have to wait for my colleague to be back so he can change the policies in his repository.

Would it be possible to add a function to the policy or the repository util in bin which would enable an administrator to add his own account to a repository in order to change such settings?

Event Timeline

lucaro raised the priority of this task from to Needs Triage.
lucaro updated the task description. (Show Details)
lucaro added projects: Diffusion, Policy.
lucaro added a subscriber: lucaro.

You can use bin/policy unlock <object> to open up the policies on an object. For example, bin/policy unlock rXYZ.

Thanks, I must have forgotten the 'r' prefix when I tried it.

epriestley claimed this task.

Cool. Let us know if you're still having issues.