Update docs to reference permission function in APIv4 entity and reference API docs in security chapter and update security permission to reference format of check permission param
ping @eileen @colemanw