---
id: workflow-grant-list
title: List where you can manage workflows
description: >-
  Tells you where you hold an action on workflows: on the whole organization, or
  only on some accounts, namespaces, or applications. Use it to pick the `nrn`
  of a workflow you create, since creating one where you can't write returns
  403.
sidebar_label: List where you can manage workflows
hide_title: true
hide_table_of_contents: true
api: >-
  eJztV1Fv2zYQ/isHvnTDVNltM3QQ0IeuaIcOQ1C0CVIgDaazdLLYUKRKnuxohv/7cJTtyLHTAEMf9pC8xBKPx+/uvu90XCnGeVDZpbpw/roybgklVdpq1s4GdZWokkLhdSvPKlNnZEyA3nWwrMlT/FU7UwJawEKMwFlYbnyFTJ64JljWzhA4P0er/0GxS8B5cNb0YhJcQ4BF4TrLIQGLDYUWCwrRCtvW6CLuCimcBwLNwA5aXVxH77n1NgdXAe6OjsgKT8iUQNC2oOFJ2zk4SyP4BdonDEuvmcATd94GOJm+SL/YL/as1gEKNAYsLciP1zNYaq7BOph7tAxo++gziU7nxJCjMRlUaALlgDbmiJqW+4g35KlKlGvJx8DelypTW/BPo8vM6MAqUS16bIjJS51WSksdvnXke5UoyZTK1JB6lahQ1NSgylaK+1ZWAntt5ypRZLtG6uwJS5WoGO9Q3wo7w3J6fLU+KHlN29Kyg6Km4jqDPBrn8U1McgyQSs23xU8gl8OiUSCSSjWpWl8lKlDRec19jGdG6Mm/7rhW2eWVLHsKrbOBgsTxfDqVf/uYLvbJxzuIktPCWSbLsmvEnMnXIFtXhylys69UxER7KQfr4WA0ZmQ0c84QSor3keTsO8qFTvYYnvv5n25YADpsWME12VTyL+9HR6P3KLXWTE04LO3Rgp1+PA0wIxGCHD8++K5yx8lbr9eJohtsWkO7HEQGb1FdqrGvV8+yjWpfPc92qn31Ql2to6uTz58Pi/fGaLIM5L3zKQjamSt7CNgHWNbIsJTlpXd2nkXNiCHkEnWeAELdNWifCrVwZgjykhi1kSVbJpLwBRpdDrFWqE3nYx+xBGTZ99CSB1dVZEtpBpUmU36HNq13M0PNL0foo1mypD4MFio5INRhXQKjLdGXm6Bi4D99fPcGXv42fQmbs2CIKCQQyC+oBAyQ34cp/zk9oO6A47AH7ON5GyGIDZx/fJ8ApfMU8pq5DdlksutFoQ9MTVrSYhJBh9sl6/hp5Tpbxl624436Tz6EyJuUHuleO9+njmFnHxi5G2tCW6Y5+fGOk+lJlIik9CHXt5+P2Nx1Ccvqb11d/D67qNpuPrVANzpwkLO1lWIWD8DdBRomow/r5I5b8Tck5oju96v2wVMQfRznefYwz++2kXvaX4vSkL8bWmBqwyQUaCeFs5WOvaihEHD+QFaaLjDUuJAv7rdOeyphc3oPTwpX0hNpRcNfon491kXOLd20VDCVg0r8pqE8KvlRyY9K/l8qOfrk2smoO6dhtBVo49TGyTfIJBtFPYy8nTcjLmKrU9sZ0xrkyvkmLVyzN1Z+EmEPsY+Hy10Y4mg7K8fZLhqpZPPjnfMNykD858WZWkd+VE62C56hdM/SaTpVO5ar0xEceP3hvaSvdYEbjJ1mM6X/pQPvXzygQYtzup2Z75JkddvMHu9eP/jutWED0w1PWoM6ajdSbauZSzUuzIaaV4mqXWBZXa1mGOjcm/VaXg+XMiFsqYPMpuVueL6/qD/2dnVPVNfUj2+JCzSdGEXVLNBrARtvX4mqCUvyMYph1+uioJZHuw4uVeJlJ+w/3p6pROG+4u4oLHrf9kbbj3yvVoPFmbsmu16rLXSWZ7WWa8W/csjeCQ==
sidebar_class_name: get api-method
info_path: docs/api/nullplatform-api
custom_edit_url: null
canonical: 'https://docs.nullplatform.com/docs/api/workflow-grant-list'
---
<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"List where you can manage workflows"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/workflows/grants"}
  context={"endpoint"}
>

</MethodEndpoint>

Tells you where you hold an action on workflows: on the whole organization, or only on some accounts, namespaces, or applications. Use it to pick the `nrn` of a workflow you create, since creating one where you can't write returns 403.

This call never returns 403: with no grant anywhere, you get `all: false` and an empty `nrns`.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"in":"query","name":"action","schema":{"type":"string","enum":["read","write"],"default":"write"},"description":"The action to check: `write` to create and edit workflows, `read` to see them."}]}
>

</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>

</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"Where you hold the action.","content":{"application/json":{"schema":{"type":"object","properties":{"all":{"type":"boolean","description":"`true` when you hold the action on the whole organization. `nrns` is empty then."},"nrns":{"type":"array","items":{"type":"string"},"description":"The NRNs below the organization where you hold the action."}}},"example":{"all":false,"nrns":["organization=1:account=2:namespace=3"]}}}},"4XX":{"description":"Client error. The body says what went wrong: an error `type`, a human-readable `detail`, and, on validation failures, one entry per offending field.","content":{"application/problem+json":{"schema":{"title":"Problem","type":"object","description":"The standard error body (RFC 7807 problem details, served as `application/problem+json`).","properties":{"type":{"type":"string","description":"Error type URI, e.g. `https://workflow-system.dev/errors/workflow-not-found`.","example":"https://workflow-system.dev/errors/workflow-not-found"},"title":{"type":"string","example":"Not found"},"status":{"type":"integer","example":404},"detail":{"type":"string","example":"No workflow with id wf_ifWBbWfpug0n exists"},"instance":{"type":"string","example":"/workflows/definitions/wf_ifWBbWfpug0n"},"errors":{"type":"array","description":"Present on validation failures: one entry per offending field.","items":{"type":"object","properties":{"path":{"type":"string","example":"/steps/scan/config"},"message":{"type":"string","example":"must have required property 'code'"}}}}}}}}},"5XX":{"description":"Unexpected server error.","content":{"application/problem+json":{"schema":{"title":"Problem","type":"object","description":"The standard error body (RFC 7807 problem details, served as `application/problem+json`).","properties":{"type":{"type":"string","description":"Error type URI, e.g. `https://workflow-system.dev/errors/workflow-not-found`.","example":"https://workflow-system.dev/errors/workflow-not-found"},"title":{"type":"string","example":"Not found"},"status":{"type":"integer","example":404},"detail":{"type":"string","example":"No workflow with id wf_ifWBbWfpug0n exists"},"instance":{"type":"string","example":"/workflows/definitions/wf_ifWBbWfpug0n"},"errors":{"type":"array","description":"Present on validation failures: one entry per offending field.","items":{"type":"object","properties":{"path":{"type":"string","example":"/steps/scan/config"},"message":{"type":"string","example":"must have required property 'code'"}}}}}}}}}}}
>

</StatusCodes>

