User Module
Creating users on DIGIT post installation
Overview
This doc provides the steps to create and add users on the DIGIT platform post-installation.
Steps To Create Users
Run the kubectl port-forwarding of the egov-user service from the Kubernetes cluster to your local host. This gives you access to egov-user service, bypassing Zuul auth, and you can now interact with the User API directly.
kubectl port-forward svc/egov-user 8080:8080 -n egov
You will see below text in the Terminal:
Forwarding from 127.0.0.1:8080 -> 8080
Forwarding from [::1]:8080 -> 8080
Ensure you have installed the Postman utility to run the following scripts. If not, Install postman on your local machine. Import the collection into Postman. Create an environment variable for âtenantIdâ and set its value to your tenant.
The collection creates four types of users and also provides a way to refresh the auth token:
Super User
System User
Citizen
Anonymous User
Run all the scripts in order.
The refresh auth token script logs into the server and refreshes the token. A sample script is provided for the employee user. Similar scripts can be copied for the citizen/super user etc..for convenience.
Sample Json Object
Last updated