# User does not have permissions to update the named graph DEFAULT

**URL:** <https://community.stardog.com/t/user-does-not-have-permissions-to-update-the-named-graph-default/4597>\
**Category:** Support\
**Created:** [September 13, 2023, 7:19am UTC](https://community.stardog.com/t/user-does-not-have-permissions-to-update-the-named-graph-default/4597 "2023-09-13T07:19:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![manish.kumar6](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@manish.kumar6](https://community.stardog.com/u/manish.kumar6)\
**Post date:** [September 13, 2023, 7:19am UTC](https://community.stardog.com/t/user-does-not-have-permissions-to-update-the-named-graph-default/4597/1 "2023-09-13T07:19:17Z")

</div>

stardog data add command failing with error "User does not have permissions to update the named graph DEFAULT" . user already have access of all the named graph.

I tried changing named graph but it didn't helped.

---

<div class="post-metadata">

**Author:** ![StevePlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/steveplace/32/1989_2.png) [@StevePlace](https://community.stardog.com/u/StevePlace)\
**Post date:** [September 13, 2023, 3:03pm UTC](https://community.stardog.com/t/user-does-not-have-permissions-to-update-the-named-graph-default/4597/2 "2023-09-13T15:03:51Z")

</div>

Hi Manish,

Can you share the output of `stardog-admin user permission` ([docs for this command](https://docs.stardog.com/stardog-admin-cli-reference/user/user-permission)) for the user having this issue?

Best,  
Steve

---

<div class="post-metadata">

**Author:** ![manish.kumar6](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@manish.kumar6](https://community.stardog.com/u/manish.kumar6)\
**Post date:** [September 14, 2023, 5:24am UTC](https://community.stardog.com/t/user-does-not-have-permissions-to-update-the-named-graph-default/4597/3 "2023-09-14T05:24:37Z")

</div>

Hi @StevePlace, What is the URI for default named graph.

We have assign following roles to the user - role grant -n $ROLE\_NAME - **a all -o named-graph:\*.**

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [September 14, 2023, 12:58pm UTC](https://community.stardog.com/t/user-does-not-have-permissions-to-update-the-named-graph-default/4597/4 "2023-09-14T12:58:37Z")

</div>

Hi Manish,

As per the [documentation](https://docs.stardog.com/operating-stardog/security/security-model#named-graphs-and-wildcards), wildcards cannot be used for named graphs. If you need named graph security enabled, you need to essentially whitelist the specific graphs to which people have access. Stardog provides the special IRI tag:stardog:api:context:default to refer to the default graph, even though technically it has no IRI.

---

<div class="post-metadata">

**Author:** ![manish.kumar6](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@manish.kumar6](https://community.stardog.com/u/manish.kumar6)\
**Post date:** [September 14, 2023, 4:30pm UTC](https://community.stardog.com/t/user-does-not-have-permissions-to-update-the-named-graph-default/4597/5 "2023-09-14T16:30:03Z")

</div>

Hi @stephen ,

It worked

stardog-admin user grant -a write -o named-graph:my-database1\tag:stardog:api:context:default [user]
