Functionality is based on Jenkins Role Strategy Plugin 2.6.1
curl -X POST localhost:8080/role-strategy/strategy/addRole --data "type=globalRoles&roleName=ADMIN&permissionIds=hudson.model.Item.Discover,hudson.model.Item.ExtendedRead&overwrite=true"
curl -X POST localhost:8080/role-strategy/strategy/removeRoles --data "type=globalRoles&roleNames=ADMIN,DEV"
curl -X POST localhost:8080/role-strategy/strategy/assignRole --data "type=globalRoles&roleName=ADMIN&sid=username"
curl -X POST localhost:8080/role-strategy/strategy/unassignRole --data "type=globalRoles&roleName=ADMIN&sid=username"