Downloading games

Sorry I’m new to posting on forums. But I was wondering if its possible to download a game /dlc on a friends acct on your Xbox and putting that game or dlc on a USB and change the ids on it to your console id would this work? Sorry if this is in the wrong section or something again I’m new to this try and take it easy on me if I’m in the wrong place

The only way of sharing DLC is by license transferring.

But what about a game if you transfer console ids?

It isn’t possible to transfer ID on games or any xbox live content unless they are DRM free.

Ok thank you