Skip to content

Unique Identifier Feature

The Unique Identifier feature enhances member privacy by using secure random profile URLs instead of username-based URLs. This is particularly valuable for dating sites, private communities, therapy platforms, or any site where member anonymity is important.

Instead of using usernames in profile URLs, the Unique Identifier feature generates a random hash for each member’s profile link.

Example:

  • Standard URL: https://example.com/members/john_doe/
  • Unique Identifier URL: https://example.com/members/aum5f8a3c9b1/

The random identifier is permanently tied to the user account and doesn’t change when the username changes.

Members can change their usernames without affecting their profile URL. This prevents others from tracking username changes or finding profiles based on known usernames.

Random URLs make it impossible to guess or search for member profiles by username. This is especially important for:

  • Dating and relationship sites
  • Mental health and therapy communities
  • Support groups and recovery platforms
  • Private membership sites
  • Anonymous discussion forums

Even when users change their usernames, their profile URL remains the same. This means:

  • Shared profile links continue to work
  • Bookmarks don’t break
  • Search engine rankings are preserved
  • External references remain valid

Random identifiers can give your site a more professional, enterprise-level feel similar to platforms like LinkedIn or modern social networks.

Important: The Unique Identifier feature is only available for BuddyPress sites. It does not work with BuddyBoss Platform.

Requirements:

  • BuddyPress 5.0 or higher installed and active
  • Advanced Username Manager plugin activated
  1. Log in to your WordPress admin dashboard
  2. Navigate to WB PluginsAdvanced Username Manager
  3. Click the General Settings tab
  1. Scroll down to the User Profile Link Format option
  2. Select Unique Identifier from the dropdown menu
  3. Click Save Changes at the bottom

Enable Unique Identifier Select Unique Identifier to use random profile URLs

After enabling this feature, the plugin automatically generates unique identifiers for all existing users when you save the settings. The generation processes users in batches of 50.

Process:

  • Identifiers are generated in batches of 50 users
  • Each identifier is a 12-character random hash
  • The prefix “aum” is added by default
  • Identifiers are cached for performance

Each unique identifier follows this format:

aum + random hash

Example: aum5f8a3c9b1d4e6

The identifier is:

  • 12 characters long (including the prefix)
  • Lowercase letters and numbers only
  • Permanently unique per user
  • Stored in user metadata as aum_profile_slug

When someone visits a profile URL with a unique identifier:

  1. BuddyPress checks if the URL contains a unique identifier
  2. The plugin looks up which user owns that identifier
  3. The profile loads with the correct user data
  4. The username displayed is the current username (not the identifier)

When Unique Identifier mode is active, profile URLs use the identifier:

  • Unique identifier URL: https://example.com/members/aum5f8a3c9b1/

Important: Username-based URLs (e.g., /members/john_doe/) only work if the username hasn’t changed. Once a user changes their username, the old username-based URL will no longer resolve. The unique identifier URL always works regardless of username changes, which is the primary benefit of this feature.

Profile URLs will display the random identifier:

https://example.com/members/aum5f8a3c9b1/
https://example.com/members/aum5f8a3c9b1/activity/
https://example.com/members/aum5f8a3c9b1/profile/
https://example.com/members/aum5f8a3c9b1/friends/

Profile URLs will use the actual username:

https://example.com/members/john_doe/
https://example.com/members/john_doe/activity/
https://example.com/members/john_doe/profile/
https://example.com/members/john_doe/friends/

You can switch between Username and Unique Identifier formats at any time.

  1. Go to General Settings
  2. Change User Profile Link Format to Unique Identifier
  3. Click Save Changes

Effect:

  • New profile links use unique identifiers
  • Identifiers are generated for users who don’t have them
  • Username-based links work only if the username hasn’t changed
  1. Go to General Settings
  2. Change User Profile Link Format to Username
  3. Click Save Changes

Effect:

  • Profile links revert to using usernames
  • Unique identifier links still work
  • Identifiers are preserved in the database

Important: Unique identifiers are never deleted, even if you switch back to username format. This ensures old links always work.

The plugin uses WordPress object caching to optimize performance:

  • Cache Key: aum_user_profile_slug_{user_id}
  • Cache Group: aum
  • Cache Duration: 1 hour (3600 seconds)

When a username changes, the plugin automatically clears relevant caches to ensure profile URLs work correctly.

Developers can customize the “aum” prefix using the filter hook:

add_filter( 'advanced_username_manager_profile_slug_prefix', function( $prefix ) {
return 'mysite'; // Change to your preferred prefix
} );

This would generate identifiers like: mysite5f8a3c9b1

See the Hooks and Filters documentation for more customization options.

Scenario: Members want to keep their profiles private and change display names frequently.

Solution:

  • Enable Unique Identifier format
  • Allow username changes with 7-day cooldown
  • Members can share stable profile URLs while maintaining privacy

Benefit: Even if someone discovers a member’s current username, they can’t find the profile URL if the member changes their username.

Scenario: Anonymous support group where members need complete privacy.

Solution:

  • Enable Unique Identifier format
  • Use random usernames or allow frequent changes
  • Disable member directory listings

Benefit: Profile URLs don’t reveal any personal information or usernames.

Scenario: Business networking site similar to LinkedIn.

Solution:

  • Enable Unique Identifier format
  • Restrict username changes to 30-day cooldown
  • Use identifiers for clean, professional URLs

Benefit: Stable, professional-looking URLs that don’t change when users update their profile information.

No, it’s completely optional. If you don’t enable it, profile URLs will use usernames as normal.

No, this feature is only available for BuddyPress. BuddyBoss handles profile slugs differently and this feature is not compatible.

Section titled “What happens to old profile links when I enable this?”

When you enable unique identifiers, the profile URL switches to the identifier format. Username-based URLs still work as long as the username hasn’t changed. After a username change, only the unique identifier URL is guaranteed to work.

Yes, it appears in their profile URL. However, the identifier doesn’t reveal any personal information.

No. Search engines can still crawl and index member profiles. The unique identifier becomes the new canonical URL for the profile.

Can I change the identifier format or length?

Section titled “Can I change the identifier format or length?”

The length and format are fixed (12 characters with “aum” prefix) for security and consistency. Developers can customize the prefix using a filter hook.

The unique identifiers remain in the database. Profile URLs will revert to standard BuddyPress behavior (using usernames).

The plugin uses a SHA1 hash of the user ID plus a random 40-character password, then takes the first 12 characters. This ensures each identifier is cryptographically unique.

No. The generation process ensures each identifier is unique. The plugin checks for existing identifiers before assigning new ones.

The Unique Identifier feature is optimized for performance:

  • Bulk Generation: Processes users in batches of 50 to prevent memory issues
  • Object Caching: Uses WordPress object cache to minimize database queries
  • One-Time Generation: Identifiers are generated once and stored permanently
  • Efficient Lookups: Database queries are optimized and cached

For large sites, identifiers are generated in batches of 50 users at a time when settings are saved. Very large sites (10,000+ members) may experience a delay while identifiers are generated.

Cause: You’re using BuddyBoss Platform or BuddyPress is not active.

Solution: This feature only works with BuddyPress (not BuddyBoss).

Cause: Setting wasn’t saved or cache needs clearing.

Solution:

  1. Verify the setting is saved in General Settings
  2. Clear your site cache
  3. Clear BuddyPress cache (if using a caching plugin)
  4. Test in a private/incognito browser window

Cause: User’s identifier wasn’t generated or database issue.

Solution:

  1. Deactivate and reactivate the plugin to trigger identifier generation
  2. Check if the user has the aum_profile_slug meta field in the database
  3. Contact support if the issue persists