I'm not sure I'm understanding what you want. But document IDs are immutable. Changing the document ID isn't possible because it would result in a different document.
If two users will be editing the same document, they need to both know the ID of that document. You could consider defining its ID as a function of the two users' IDs, i.e. "shared-between-$A-$B" where $A and $B are the two user IDs. (To make this independent of which user is A and which B, you should choose A as the ID thats sorts lower, i.e. min(user1,user2), and B as the one that sorts higher.)
—Jens