Maybe add a note that this assumes `uid` is populated? Would it be easy to make it optional?