If this is a medical record, you probably so use a transient download URL for the session when the profile is logged on, and destroy that URL when the users logs off, this ensures that the file is not accessible to others.
I used WP Customer Area plugin on a CRM project and found it extremely useful for this kind of problem. You can create a secure page for customer, and secure file attachments in the dashboard which only the profile can access.
Related Posts:
- How do you add a custom option to user data?
- How to reload the role specific registration form on validation errors?
- How to customize wp_signon()
- Add More Fields to Users Pages (Admin Panel)
- Register rest field for specific user
- How to show a gloabl message on a user profile page (in back end)?
- Displaying different in-page content to cliente/admin
- Front end register with custom fields
- How to allow an user role to create a new user under a role which lower than his level only?
- How do I programmatically set default role for new users?
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- What the user_status column?
- Hide Admin Menu for Specific User ID who has administrator Role
- Save custom user meta on registration
- How can i force Display names to be the same as Usernames?
- Custom user avatar in the WordPress users listing
- User Profile / Add Custom Fields
- Copy a user from one WordPress site to another
- How to remove “Super Admin” from All Users for those that are not a “Super Admin”?
- Custom user profile, registration, login page with theme
- Is there a way to set the user Role based on email domain
- Adding Properties to User Profile and Displaying in List
- Extra filed under “About the user” user profile
- Can I create users that have access to *some* other users posts instead of all other users posts?
- Upload files programmatically to users
- get_user_meta Short Profile Section
- Login & Register & Custom details WITHOUT plugin
- WPMU – new users are automatically subscribed to the main blog – how to prevent that?
- Saving custom profile fields
- Registration and Profile custom field
- Redirect users based on custom field
- Custom User Profile Fields
- Managing Users and Creating Groups [closed]
- WordPress User Profile Upload – If page is saved file reset
- How to disable a specific page for a specific user
- Add conditional custom option to ‘Display name publicly as’ dropdown
- WP_User_Query pulling ACF to loop
- Custom Fields – Taller editing area
- Front-end editing with custom fields?
- Excluding Specific Fields from Profile Builder Registration Form
- wordpress user roles are not working
- Problem with automatic role change through cron job
- How to create user specific pages (not user role!)?
- How can I allow an User to publish only 5 posts per month?
- Change label for registration Fields
- Passing args to WP_User_Query am I using meta correctly?
- UPDATE on SELECT results. A SQL query to swap Author with Meta Box value
- Customizing user data
- Add additional ‘description’ field for defined roles / role metadata?
- Create custom post with custom user rules
- Where are $current_user->allcaps set?
- Custom Field to a Role?
- Linking Custom Fields to Database Records
- Limit number of users a role can create
- Menu page with list of users
- Show user info in a hovercard [closed]
- Display Custom Field for a Specific Role, but not for Admin
- Iterate through users and display users meta info at front-page
- How to disable Edit Post and Allow only Custom Field?
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- how to make a custom field readonly or disabled by user role?
- Custom Field Repeating When Using foreach
- Allow admins to login as other users
- Can I Create a Second Admin Level User Role?
- Get emails from users by custom field SQL
- Unique password to access a section site
- HM CMB: Role Select
- Adding extra fields to front end signup form
- Save custom field types with this function…?
- Adding re-type email and check it if the email match
- Delete user meta but only if found in array
- Easily adding multiple existing users to a multisite site
- Custom User Dashboard
- Custom user registration fields in user_register hook
- How to save multiple custom user profile fields using repeater JQuery
- Adding more fields to the registration form
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- User / membership Plugin [closed]
- Custom User Role: Can Edit Own Page, Cannot Create New
- Link fields in User Admin list
- A different role for each site in a multisite
- WordPress install checking permissions of user id 0
- Allowing users to edit only their page and nobody else’s
- How to bulk change user role to “No role for this site”
- Restrict Access to the User Profile
- Extend WP_User_Query or WP_User to return all custom fields?
- Register author, facebook connect, publish posts from front end
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- view and update form only for registered users
- Echo text if field under user_meta is empty with get_users()
- Semi-Private Comments + page comments -> is it possible?
- each user having category with their name and can add sub categories post in that category
- Control Category of each user can post
- Custom registration form and custom field
- Limit user access to installing/configuring a plugin?
- How to give different user access to different people?
- Create Unique and Customized User ID for Website Members in WordPress
- MySQL query to list users who never signed in
- Wordpres password as plain text in email
- Custom Admin Menu Report for Specific User ID