Does IdentifierForVendor change when same app is installed on two different devices logged in with same iCloud?

For my app IdentifierForVendor remains same when I install app on two different devices logged in with same iCloud. I also tried installing my app on two different devices logged in with different iCloud, the IdentifierForVendor was different in this case. Is this the expected behaviour? If yes, what can I do to differentiate the app installs for devices logged in with same iCloud?

Does IdentifierForVendor change when same app is installed on two different devices logged in with same iCloud?
 
 
Q