# getUserNamespaces

> Function getUserNamespaces in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Function getUserNamespaces in pulumi-portainer.

Invoke token: `portainer:index/getUserNamespaces:getUserNamespaces`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const result = await portainer.getUserNamespaces({
  userId: 0,
})
```

`getUserNamespacesOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property | Type     | Required | Description |
| -------- | -------- | -------- | ----------- |
| `id`     | `string` | no       |             |
| `userId` | `number` | yes      |             |

## Result

| Property     | Type                           | Always present | Description |
| ------------ | ------------------------------ | -------------- | ----------- |
| `id`         | `string`                       | yes            |             |
| `namespaces` | `GetUserNamespacesNamespace[]` | yes            |             |
| `raw`        | `string`                       | yes            |             |
| `userId`     | `number`                       | yes            |             |

## `GetUserNamespacesNamespace`

Output object `GetUserNamespacesNamespace`. Fields below belong to this object.

| Property         | Type       | Always present | Description |
| ---------------- | ---------- | -------------- | ----------- |
| `authorizations` | `string[]` | no             |             |
| `endpointId`     | `string`   | no             |             |
| `namespace`      | `string`   | no             |             |
