unassign_access_policy

ID: unassign_access_policy

This pops up a modal to ask the user if they'd like to unassign the specified Access Policies. Upon confirmation, the Access Policies are unassigned from the target (specified by ref).

Sample Code

var UI = require("ui");

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

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

});