Access to customer profile with pin code

Users aren’t stored as a post type like most other content in WordPress so you can’t use the per-page password feature in core. You can add a custom meta field to Users for the pin and then add some functions for displaying/handling the form, checking if the pin is valid, and so on.

Another option would be to use a custom post type to implement the public user profiles. With this option you’d be able to leverage the content password features in core. You’d set the pin for the custom user profile post type, show the form using get_the_password_form(), and check for the password using post_password_required().

Reference Using Password Protection on the WordPress documentation site for more information.