<p>I figured it out!
I used share/rpcauth.py script in bitcoin core to generate two users and passed the output multiple times using <code>-rpcauth</code> argument.</p>
<pre><code>wget https://raw.githubusercontent.com/bitcoin/bitcoin/master/share/rpcauth/rpcauth.py

python3 rpcauth.py my-username  my-password

</code></pre>

CC BY-SA 4.0
2022-03-10T16:56:06.170Z
2022-03-10T16:56:06.170Z
Farghaly
<p>I am passing multiple <code>-rpcuser</code> and <code>-rpcpassword</code> options, but the last user is the one that's working ! I was assuming that I can set multiple JSON-RPC users.</p>

<bitcoin-core><bitcoind><json-rpc><bitcoin-cli>
Is it possible to set multiple JSON-RPC users?
Farghaly
# Is it possible to set multiple JSON-RPC users?

(Asked by: username_0 on 2022-03-10)

I am passing multiple `-rpcuser` and `-rpcpassword` options, but the last user is the one that's working ! I was assuming that I can set multiple JSON-RPC users.

**Tags:** bitcoin-core, bitcoind, json-rpc, bitcoin-cli


---

## 1 answers

### Answer by username_0 on 2022-03-10. Score: 1

I figured it out!
I used share/rpcauth.py script in bitcoin core to generate two users and passed the output multiple times using -rpcauth argument.
wget https://raw.githubusercontent.com/bitcoin/bitcoin/master/share/rpcauth/rpcauth.py

python3 rpcauth.py my-username  my-password


---

