Pretty sure Apple has disallowed access to any of that kind of personal information for years now.
In any case it would need full disclosure through the Apple Tracking Transparency stuff:
If you just need a unique ID, either use Application.identifier (read and carefully understand the Unity3D docs for what that value is!), or else make one yourself with System.Guid() and store it.
The implementation for visionOS uses the same method as iOS (UIDevice.identifierForVendor), and Apple’s documentation claims that it’s supported on visionOS. I haven’t tested it, however.