Title: User Url Restriction
Last modified: November 14, 2021

---

# User Url Restriction

 *  Resolved [amilisic](https://wordpress.org/support/users/amilisic/)
 * (@amilisic)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/)
 * Good day everybody,
 * My issue is that I cannot find a way to redirect users that manually type in 
   a URL of /user/<username> of other profiles. Even though I set up all the restrictions
   required in the ultimate member settings and page settings it will still display
   that users names and surname, I cant figure out how to have the user redirect
   to login page or its own profile page when it queries a url with no permissions
   to view.
    Page settings do have redirection options dependent of user role settings,
   but the issue is all users are under “members” user role, moving them to another
   role logistically wont resolve the issue.
 * To summarize, a logged in user with his own /user/<username> cannot access other
   profiles by manually typing the url of that profile but gets redirected to his
   profile if any attempt is made.

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15067828)
 * Hi [@amilisic](https://wordpress.org/support/users/amilisic/)
 * You don’t want all users to access other profiles? You can set it in the User
   Role settings. Please go to WP Admin > Ultimate Member > User Roles > Edit a 
   role > see “Profile Access” section > uncheck the option “Can view other member
   profiles?”.
 * Regards,
 *  Thread Starter [amilisic](https://wordpress.org/support/users/amilisic/)
 * (@amilisic)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15073026)
 * Hi [@champsupertramp](https://wordpress.org/support/users/champsupertramp/) ,
 * Ive tried that, and its unchecked but the individual user can still see other
   user data by just manually changing the /user/<username> url.
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15073057)
 * Hi [@amilisic](https://wordpress.org/support/users/amilisic/)
 * Are you using an admin account? If so, it will allow you to access the profiles.
 * Regards,
 *  Thread Starter [amilisic](https://wordpress.org/support/users/amilisic/)
 * (@amilisic)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15073182)
 * Im not. In this case I created a test account with only members role and loged
   into that test account. I made sure that the webpage and role settings have other
   profiles viewable “off” setting. Other issue is how to redirect those attempts(
   when manually accessing other users via url) back to the user loged in page.
   
   I hope you can help
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15076577)
 * Hi [@amilisic](https://wordpress.org/support/users/amilisic/)
 * How many roles are assigned to your test account? If there’s more than 1 role,
   you need to make the Role that has the “Can view other member profiles?” option
   off a primary role by adding a Priority Number in the settings. Please see the
   screenshot in the link: [https://drive.google.com/file/d/128qHQg-4HeOD-aS82YRgdqZZRN1sMGMI/view?usp=sharing](https://drive.google.com/file/d/128qHQg-4HeOD-aS82YRgdqZZRN1sMGMI/view?usp=sharing)
 * Regards,
 *  Thread Starter [amilisic](https://wordpress.org/support/users/amilisic/)
 * (@amilisic)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15077222)
 * Hi [@champsupertramp](https://wordpress.org/support/users/champsupertramp/)
 * Please find the attached screenshots of the user role settings and the test user
   settings.
 * [https://drive.google.com/file/d/1z6RWS9oGM7GcGE5R9Q2wivsyjKQ7WvC7/view?usp=sharing](https://drive.google.com/file/d/1z6RWS9oGM7GcGE5R9Q2wivsyjKQ7WvC7/view?usp=sharing)
 * [https://drive.google.com/file/d/13vcyrlVNN2vDkwGZAOy1GXPh9aE09Bl4/view?usp=sharing](https://drive.google.com/file/d/13vcyrlVNN2vDkwGZAOy1GXPh9aE09Bl4/view?usp=sharing)
 * [https://drive.google.com/file/d/1xAXVcjBKROjwEXy5ctVfjXEpndSfM3-0/view?usp=sharing](https://drive.google.com/file/d/1xAXVcjBKROjwEXy5ctVfjXEpndSfM3-0/view?usp=sharing)
 * Also the test user only has 1 role assigned.
 * If I may throw out an idea, in the user settings on WP there is an option called“
   Display name publicly as” – does this setting override the privacy settings set
   up on ultimate member? Because it when the manual URL of the specific user is
   put in once logged in as a test user, only their public name is viewable no other
   information. But this is still considered a privacy problem.
 * Hope to hear back with any other suggestions
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15079910)
 * Hi [@amilisic](https://wordpress.org/support/users/amilisic/)
 * I couldn’t reproduce the issue on our end. Please see my test in the video clip:
   
   [https://drive.google.com/file/d/12Yc-Ipe5eKguxy1_McmWmFkpNr-gPlgF/view?usp=sharing](https://drive.google.com/file/d/12Yc-Ipe5eKguxy1_McmWmFkpNr-gPlgF/view?usp=sharing)
 * Could you please confirm what version of UM you’ve on your site? Also, could 
   you please confirm if there’s another role assigned to the test user in the WP
   Admin > Users? Please see the screenshot: [https://drive.google.com/file/d/12c5Wz65npngHX9pUXttpK0YEtUCrY0Do/view?usp=sharing](https://drive.google.com/file/d/12c5Wz65npngHX9pUXttpK0YEtUCrY0Do/view?usp=sharing)
 * Regards,
 *  Thread Starter [amilisic](https://wordpress.org/support/users/amilisic/)
 * (@amilisic)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15084464)
 * Hi [@champsupertramp](https://wordpress.org/support/users/champsupertramp/)
 * I attached a recording below showing the page settings, user roles settings for“
   members”, assigned test123 user role settings, and testing on the website shows
   the test123 user can access another profile via direct url and display the name.
 * UM version is 2.2.5
    WP version is 5.8.2 Hope this clarifies the issue,
 * Thanks,
 *  Thread Starter [amilisic](https://wordpress.org/support/users/amilisic/)
 * (@amilisic)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15084477)
 * [https://drive.google.com/file/d/1ilXoGt-Smz7odsHsOmfFCpGtHiyobnGT/view?usp=sharing](https://drive.google.com/file/d/1ilXoGt-Smz7odsHsOmfFCpGtHiyobnGT/view?usp=sharing)
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15084893)
 * Hi [@amilisic](https://wordpress.org/support/users/amilisic/)
 * It looks like you have made customization on your profile. Could you please try
   disabling the customization and see if the issue still occurs when viewing other
   profiles?
 * Regards,
 *  Thread Starter [amilisic](https://wordpress.org/support/users/amilisic/)
 * (@amilisic)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15085244)
 * Hi [@champsupertramp](https://wordpress.org/support/users/champsupertramp/)
    
   I dont see any setting relating to customization for the members role. All the
   settings are viewable in the video I sent you. It is a customer user role I have
   created called “members”. I’ve created a new role and migrated all the settings,
   tested it and it will still allow users to see other profile names. Ive checked
   setting can allow to make profile private but that did not change anything. same
   outcome. Not sure what else is left,
 * appreciate your effort
    hope for a solution,
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15090719)
 * Hi [@amilisic](https://wordpress.org/support/users/amilisic/)
 * I’ll take a closer look at this issue.
    Could you please contact us via [team@ultimatemember.com](https://wordpress.org/support/topic/user-url-restriction/team@ultimatemember.com?output_format=md)?
   Please include the topic URL in the email message.
 * Regards,
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15150525)
 * Hi [@amilisic](https://wordpress.org/support/users/amilisic/)
 * Please feel free to re-open this thread by changing the Topic Status to ‘Not 
   Resolved’ if any other questions come up and we’d be happy to help. 🙂
 * Regards,

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘User Url Restriction’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

 * [profile](https://wordpress.org/support/topic-tag/profile/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 13 replies
 * 2 participants
 * Last reply from: [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/user-url-restriction/#post-15150525)
 * Status: resolved