question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to prevent displayName change in config

See original GitHub issue

Is your feature request related to a problem you are facing? I currently cannot prevent an user to update his dsplay name. I’m setting it automatically and don’t want him to be able to change it.

Describe the solution you’d like Have a boolean parameter I can set in configOverwrite, which could be something like enableDisplayNameChange as true by default.

Describe alternatives you’ve considered To prevent users doing it I made an event listener on displayNameChange to set it back, but it will seem strange in an UX point of view.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
nilsreichardtcommented, Jan 28, 2021

If you use jwt token, you can set enableUserRolesBasedOnToken to true This removes the profile editing from the user interface for token authenticated users.

However savvy users can still change their displayName from the browser console with api.executeCommand(‘displayName’, ‘newname’); I am looking for a solution to prevent this. Maybe an option to disable the displayName command from the API? Could it be the same option as enableUserRolesBasedOnToken?

enableUserRolesBasedOnToken doesn’t exists anymore. It is separated into disableProfile and enableFeaturesBasedOnToken:

// Disables profile and the edit of all fields from the profile settings (display name and email)
disableProfile: true,

// Whether or not some features are checked based on token.
// enableFeaturesBasedOnToken: false,
1reaction
cubicocommented, Aug 4, 2020

It works for me with JitsiMeetExternalAPI:

<script src='https://meet.jit.si/external_api.js'></script>
<script>
  // check conference state (join page or videochat)
  let videoConferenceJoined = false;

  // set with an string to default value, "John Doe" by example
  let localDisplayName = null;

  const domain = 'meet.jit.si';
  const options = {...}; // put your own options here
  const api = new JitsiMeetExternalAPI(domain, options);

  // Force default value (You can comment this line if localDisplayName is null)
  api.executeCommand('displayName', localDisplayName);

  api.addEventListeners({
      displayNameChange: function(params){
        // if is Videochat, set the Join Page displayName
        if (videoConferenceJoined){
          return this.executeCommand('displayName', localDisplayName);
        }

        // if is Join Page, update global variable (localDisplayName) with input value
        localDisplayName = params.displayname;
      },
      videoConferenceJoined: function() {
       // flag the conference starts
        videoConferenceJoined = true;
      }
  });
</script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Preventing Users from Changing DisplayName in Office 365
Hi everybody! I have a problem in preventing users in my organization from changing DisplayName in Exchange Online / Office 365.
Read more >
Prevent changing of display name / Extend screenshare ...
Firstly I'm wondering if we can prevent users being able to click on their Local Video to change the display name. I'm presetting...
Read more >
Allow users to change their profile fields for meetings
Are you concerned about unprofessional and inappropriate changes to user profiles? Administrators can allow or prevent Webex users from ...
Read more >
Restrict agents from changing Display Name - Zendesk help
On both Chat and Messaging, agents can change their display names via Display Name or Alias on their Profile Settings respectively.
Read more >
Prevent students to edit in user profile setting change name
Make sure that the check-box for "Users can edit their name" is unchecked. If it is checked, remove the checkmark, and click the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found