Allow teams in another org within an enterprise to get access on repositories

Currently, we have to invite users from another organization within our enterprise to our org either as outside collaborators or as members before we are able to give them access to our internal repos. These users are part of the company who have their own GitHub teams in their own org. I want to be able to give write access to let’s say @org2/team1 to a repository in org1 so they can still collaborate with the teams in our org and contribute to certain repos. Maybe this functionality exists already on an enterprise level? I was not able to find any GH documentation with this use case.