Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
  1. Home
  2. General
  3. Only allow user to change username if it is unique and does not contain profanity?

Only allow user to change username if it is unique and does not contain profanity?

Scheduled Pinned Locked Moved Solved General
userscloud codeapi
4 Posts 2 Posters 1.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kuabs
    wrote on last edited by
    #1

    Was following the tutorial over at bootcamp episode

    but a couple things came up.

    1. It looks like users can have overlapping display names / usernames correct? Is there a way to disable this behavior so that users will get an error if a name is taken?
    2. Can we implement a profanity filter on usernames?
    1 Reply Last reply
    0
    • Paul WinterhalderP Offline
      Paul WinterhalderP Offline
      Paul Winterhalder
      brainCloudAdmin
      wrote on last edited by
      #3

      Hi Kuabs,

      Assuming your app isn't otherwise using UniversalIds -- you can use what we call a Non-login Universal Id for this purpose.

      This utilizes our UniversalId concept - which is basically just a unique username for the user. But disables it for login purposes.

      You use this call to attach one: https://docs.braincloudservers.com/api/capi/identity/attachnonloginuniversalid

      I'd do it via cloud code script - and once an id has been successfully attached - automatically update the user's name to match that universalId. (Basically - we're piggybacking on the universalId to make it unique).

      Hope that helps!

      Paul.

      K 1 Reply Last reply
      0
      • K Offline
        K Offline
        kuabs
        wrote on last edited by
        #2

        For a lot of games a unique username (other than the profile name, a unique display name) is a bare minimum requirement. @Paul-Winterhalder Has this use case been solved?
        I see this post from 2021 https://forums.getbraincloud.com/topic/119/unique-field-for-a-custom-entity but unfortunately its not a solution

        1 Reply Last reply
        0
        • Paul WinterhalderP Offline
          Paul WinterhalderP Offline
          Paul Winterhalder
          brainCloudAdmin
          wrote on last edited by
          #3

          Hi Kuabs,

          Assuming your app isn't otherwise using UniversalIds -- you can use what we call a Non-login Universal Id for this purpose.

          This utilizes our UniversalId concept - which is basically just a unique username for the user. But disables it for login purposes.

          You use this call to attach one: https://docs.braincloudservers.com/api/capi/identity/attachnonloginuniversalid

          I'd do it via cloud code script - and once an id has been successfully attached - automatically update the user's name to match that universalId. (Basically - we're piggybacking on the universalId to make it unique).

          Hope that helps!

          Paul.

          K 1 Reply Last reply
          0
          • Paul WinterhalderP Paul Winterhalder

            Hi Kuabs,

            Assuming your app isn't otherwise using UniversalIds -- you can use what we call a Non-login Universal Id for this purpose.

            This utilizes our UniversalId concept - which is basically just a unique username for the user. But disables it for login purposes.

            You use this call to attach one: https://docs.braincloudservers.com/api/capi/identity/attachnonloginuniversalid

            I'd do it via cloud code script - and once an id has been successfully attached - automatically update the user's name to match that universalId. (Basically - we're piggybacking on the universalId to make it unique).

            Hope that helps!

            Paul.

            K Offline
            K Offline
            kuabs
            wrote on last edited by
            #4

            @Paul-Winterhalder Amazing! This is perfect for my needs-- thanks so much Paul.

            1 Reply Last reply
            1
            • Paul WinterhalderP Paul Winterhalder has marked this topic as solved on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Solved
            • Unsolved
            • Users