assign_access_policy

ID: assign_access_policy

Brings up a popup modal that lets the user select an access policy using an Access Policy Picker. The selected access policy is handed back on the callback.

Sample Code

var UI = require("ui");

var actionContext = {};
actionContext.ref = node.ref(); // "node://platformId/repositoryId/branchId/nodeId";
UI.startAction(observableHolder, "assign_access_policy", actionContext, function(err) {

    // if something went wrong, err will contain the error
    // otherwise, success

});