How to check if user in Person field is a Manager?

Hi

Can anyone help me with some code to validate a Person field if the person has a custom property set in user profile properties? We have a custom property isManager. Just need to check this and return failed if this is ticked in their User profile.

Thanks

Hello @cknightTSY,

Please see the Retrieve user profile information article to know how to get user profile properties.

You can get the user properties on field change and then perform any other actions you need to.