I need help as I have a requirement to get all permissions (PermissionKind Enumeration)and bind it to a drop-down. Also, I need help to know what are the different ways to bind Enumerator value using jquery.

  • Not a direct answer to your question... but as these are unchanged since SP 2007, why not just hand enter them into your HTML and use friendly names that your users may understand. Sep 8 '18 at 20:18

We can use the following code to achieve it.

<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(getPermissionKinds, "sp.js");
function getPermissionKinds() {  
    $.each(SP.PermissionKind, function(key, value) {
            $("#PermissionKinds").append("<option value="+value+">"+key+"</option>");
<select id="PermissionKinds"></select>

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.