Last active
August 29, 2015 14:22
-
-
Save mshanemc/3f8983ba95f7fffd9381 to your computer and use it in GitHub Desktop.
Salesforce profile un-permissioner. Run the following 2 scripts from the chrome console to get a no-app, no-object, no-tab user
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
//then no conflict | |
$j = jQuery.noConflict (); | |
//remove all the apps | |
$j('input[id^="tabSet_visible___"]').prop('checked', false); | |
//"override users tabs" | |
$j('#resetUsersTabs').prop('checked', true); | |
//remove all the tabs | |
$j('select[id^="tab___"]').val(0) | |
//remove all the object permissions | |
$j('input[id^="crud"]').prop('checked', false); | |
//misc perms | |
$j('#userPerm___66').prop('checked', false); //convert leads | |
$j('#userPerm___29').prop('checked', false); //edit self-service users | |
$j('#userPerm___5').prop('checked', false); //import personal contacts | |
$j('#userPerm___59').prop('checked', false); //override forecasts | |
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
//first, import jquery | |
var script=document.createElement('script'); | |
script.type='text/javascript'; | |
script.src='https://code.jquery.com/jquery-latest.min.js'; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment