Giuliani cannot take the AG role because his law practice includes lobbying for foreign interests. There’s no way he’d be willing to accept the ban on such after serving as AG per Trump’s rule for serving in a cabinet position.
This is the main reason Giuliani didn’t take a cabinet slot in January.