# Icinga Director REST API - API users not working

**URL:** <https://community.icinga.com/t/icinga-director-rest-api-api-users-not-working/3198>\
**Category:** Icinga Director\
**Created:** [January 14, 2020, 9:03am UTC](https://community.icinga.com/t/icinga-director-rest-api-api-users-not-working/3198 "2020-01-14T09:03:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lukas](https://community.icinga.com/letter_avatar_proxy/v4/letter/l/e9a140/32.png) [@lukas](https://community.icinga.com/u/lukas)\
**Post date:** [January 14, 2020, 11:13am UTC](https://community.icinga.com/t/icinga-director-rest-api-api-users-not-working/3198/2 "2020-01-14T11:13:17Z")

</div>

Hey Jaber,

maybe this can help? Add the user to a role with the needed permissions.

Source:

> [@Get information via Poweshell and Icinga Director API](https://community.icinga.com/t/get-information-via-poweshell-and-icinga-director-api/3141/8):
>
> Thanks for your help, that’s what it was. Solution: I created a user under IcingaWeb2 → configuration → authentication → user → "Create new user After that I created a new role under IcingaWeb2 → configuration → authentication → Rollen→ “Create new role” and in the module “director” I added the rights “General Module Access” and “director/\*”. I added the user “user” to the role. This gave me a correctly configured user for working with the Icinga Director API. Then I wrote a script that cr…

---

_[View the full topic](https://community.icinga.com/t/icinga-director-rest-api-api-users-not-working/3198)._
