# Function: may()

```ts
function may(
   state, 
   did, 
   cmd, 
   args, 
   options?
): boolean;
```

Defined in: [packages/core/src/space/roles.ts:469](https://github.com/leifriksheim/minca/blob/main/core/src/space/roles.ts#L469)

Whether an account may invoke a command with these arguments in a state:
a founder may invoke anything; anyone else, what a role assigned to it
holds, each definition only as far as its author could invoke it (UCAN's
attenuation), with what the roles it nests hold.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `state` | [`AccessState`](https://minca.dev/api/core/interfaces/AccessState.md) |
| `did` | `string` |
| `cmd` | `string` |
| `args` | `unknown` |
| `options?` | `MayOptions` |

## Returns

`boolean`
