Last active
April 26, 2020 15:57
-
-
Save rickx1/e933a743752e0533e5b165a404aa6f52 to your computer and use it in GitHub Desktop.
This code will display the distinguished name of a group or user in the interface instead of the display name. Store these files as snippets in your browser developers tools and run them when needed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Restore the original function, showing the display name | |
if ( acceUtil ) { | |
if ( acceUtil.originalGetSecurityPrincipalDisplayName ) { | |
acceUtil.getSecurityPrincipalDisplayName = acceUtil.originalGetSecurityPrincipalDisplayName; | |
console.log("Showing the principals display name"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Shows the principals distinguised name in ACCE | |
if ( acceUtil ) { | |
if ( !acceUtil.originalGetSecurityPrincipalDisplayName ) { | |
acceUtil.originalGetSecurityPrincipalDisplayName = acceUtil.getSecurityPrincipalDisplayName; | |
} | |
acceUtil.getSecurityPrincipalDisplayName = function(name) { | |
// Change this value to show more (or less) parts: | |
var partsToShow = 3; | |
return name.match(/([^,]+)/g).slice(0,partsToShow).join(','); | |
} | |
console.log("Showing the principals distinguished name"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment