# How to set Dgraph server account password access

**URL:** <https://discuss.dgraph.io/t/how-to-set-dgraph-server-account-password-access/7454>\
**Category:** Dgraph\
**Tags:** mutation\
**Created:** [July 1, 2020, 4:28am UTC](https://discuss.dgraph.io/t/how-to-set-dgraph-server-account-password-access/7454 "2020-07-01T04:28:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangliujing](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/wangliujing/32/2731_2.png) [@wangliujing](https://discuss.dgraph.io/u/wangliujing)\
**Post date:** [July 1, 2020, 4:28am UTC](https://discuss.dgraph.io/t/how-to-set-dgraph-server-account-password-access/7454/1 "2020-07-01T04:28:48Z")

</div>

How to set Dgraph server account password access,and How can A Java client access it using an account password

---

<div class="post-metadata">

**Author:** ![abhimanyusinghgaur](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/abhimanyusinghgaur/32/2980_2.png) [@abhimanyusinghgaur](https://discuss.dgraph.io/u/abhimanyusinghgaur)\
**Post date:** [July 1, 2020, 4:42am UTC](https://discuss.dgraph.io/t/how-to-set-dgraph-server-account-password-access/7454/2 "2020-07-01T04:42:21Z")

</div>

Do you mean to use ACL?  
If yes, there is a `login` method on both `DgraphClient` and `DgraphAsyncClient` in Java client.  
Also, you can look at `dgraph acl` command to find out how to create user, change password etc.  
Here are the ACL docs: [https://dgraph.io/docs/enterprise-features/#turn-on-acls](https://dgraph.io/docs/enterprise-features/#turn-on-acls)

By the way, ACL is an enterprise only feature.

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [July 1, 2020, 4:50am UTC](https://discuss.dgraph.io/t/how-to-set-dgraph-server-account-password-access/7454/3 "2020-07-01T04:50:37Z")

</div>

As mentioned here [Enterprise Features, Dgraph Core Values, Open Source, and My Thoughts - #12 by mrjn](http://discuss.hypermode.com/t/enterprise-features-dgraph-core-values-open-source-and-my-thoughts/7399/12)

You can use “[Poor Man’s ACL](https://dgraph.io/docs/deploy/#securing-alter-operations)”. which is open source. But ACL can be better for some cases.
