DIGIT Docs
  • DIGIT Knowledge Base
  • Local Governance
  • Introducing mGramSeva
    • Platform
      • Release Notes
        • Web Caching
        • Service Build Updates
        • MDMS Configuration & Migration Updates
        • Test Cases
        • Release Checklist
        • Implementation Checklist
      • Technology
      • Architecture
      • Demo video
      • Configure mGramSeva
        • Vendor Registry Service
        • User Events Service
        • eChallans Service
        • Water Calculator Service
        • Property Services
        • Billing Service
        • Apportion Service
      • Technical User Docs
        • Application Structure
        • Firebase Analytics Integration
        • Integration Testing
        • Integration Testing With Github Actions
        • Backend Services
          • mGramSeva - Water Services
          • mGramSeva - Water Service Calculator
          • mGramSeva e-Challan Service
          • mGramSeva - User Service
          • mGramSeva - Billing Service
          • mGramSeva - User OTP
          • iFix Adapter Integration Service
          • mGramSeva - Rollout Dashboard
          • mGramSeva Scheduler
          • mGramSeva- Services Re-Indexing
          • mGramSeva Dashboard
          • Events Push To IFIX Adapter
        • Tech User Manual
          • Language Selection
          • Login
          • Change Password
          • Edit Profile
          • Home Page
          • Forgot Password
          • Update Password FTL
          • Generate Bill
          • Search Connection
          • Consumer Details
            • Create Consumer
            • Update Consumer
          • Expenses
            • Add Expenses
            • Search Expense Bills
            • Modify Expenses
          • Dashboards
            • Monthly Dashboard
            • Collections Dashboard
            • Expenditure Dashboard
          • Collect Payment
          • Consumer Feedback
          • Household Register
          • Bluetooth Thermal Printer Integration
        • Application Permissions & Dependencies
        • mGramSeva UI
          • UI Mockups
          • mGramSeva UI
            • mGramSeva - Advance Changes
            • mGramSeva Penalty Changes
      • Installation
      • Configuration
    • Enablement toolkits
      • AWS Installation
        • Setup AWS Account
        • Certificate Purchase
        • Setup Git Repository
        • Domain Name Configuration
        • Create Git Account In The Client Name
      • Setting up Services
        • Getting Started With DIGIT
        • Creating Users
        • Loading Employees For mGramSeva
        • Loading Consumers For mGramSeva
        • Localisation Module
        • Updating Master Rate for Mgramseva
        • Create Consumer API
        • Create User API
        • SMS Template
        • mGramSeva MDMS
        • Create New Tenant
        • Workflow
    • Product Docs
      • Functional Docs
        • Login & Forgot Password
        • User Roles & Home Screen
        • Create Consumer
        • Search Consumer
        • Edit Consumer
        • View Consumer
        • Billing - Bulk Demand Generation
        • Billing - Metered Connection
        • Revenue Collection - Offline
        • Expenditure - Add Expense
        • Expenditure - Modify Expense
        • User Onboarding - Bulk Upload
        • User Onboarding/Walkthrough
        • Feedback - Post Payment
        • SMS Notifications
        • Home Page Notifications
        • Edit User Profile
        • Bill and Receipt PDF
        • Update Expense Search
        • Bulk Demand Generation For Non-Metered Connection
        • Demand/Bill Generation For Metered Connection
        • Household Register
        • Tabular Dashboard - Expense
        • Tabular Dashboard - Collection
        • Download Bills & Receipt
        • App Force Update
        • HRMS
        • Advance Changes
      • User Docs
        • User Manual
  • 🚻Community
    • Roadmap
    • Source Code
    • Discussion
    • Events
    • Training & Certification
Powered by GitBook

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  • Overview
  • Pre-requisites
  • Steps

Was this helpful?

Edit on GitHub
Export as PDF
  1. Introducing mGramSeva
  2. Enablement toolkits
  3. Setting up Services

Loading Employees For mGramSeva

Overview

This page provides a clear and concise guide for automating user creation in mGramSeva. It allows you to efficiently create users and manage their roles in the system.

Follow the steps provided on this page to create users for mGramSeva using a Python script. The process involves preparing an Excel sheet with user information, configuring the Python script, and executing it.

Pre-requisites

  1. Python script for creating users for mGramSeva.The sample format of the Python script is attached below.

  2. Excel sheet containing user data. The sample format of the Excel sheet is attached below. Make sure to populate the data in the same format.

    • Columns: tenant name, mobile no, father name, gender, date of birth (dd/mm/yyyy), type, and ward (fixed to "ward 1").

    • Types: Sarpanch, Secretory, Revenue Collector, Division User or State User

    • Roles for Sarpanch: COLLECTION_OPERATOR, EXPENSE_PROCESSING, BULK_DEMAND_PROCESSING, DASHBOARD_VIEWER, GP_ADMIN.

    • Roles for Secretory: EXPENSE_PROCESSING, BULK_DEMAND_PROCESSING, DASHBOARD_VIEWER, GP_ADMIN, COLLECTION_OPERATOR.

    • Roles for Revenue Collector: COLLECTION_OPERATOR, DASHBOARD_VIEWER.

    • Roles for Division User: HRMS_ADMIN, DIVISION_ADMIN

    • Roles for State User: HRMS_ADMIN, STATE_ADMIN

Steps

  1. Prepare the Excel Sheet:

    Create an Excel sheet with the following columns and data in the given format:

    • Tenant Name (in lowercase)

    For State User tenant name will be pb

    • Mobile Number

    • Father's Name (Mandatory, use "NA" if not available)

    • Gender (M/F - this data is mandatory)

    • Date of Birth (in the format dd/mm/yyyy)

    • Type (Sarpanch, Secretory, Revenue Collector, Division User or State User)

    • Roles

      Based on the User Type, set corresponding roles:

      • Sarpanch: COLLECTION_OPERATOR, EXPENSE_PROCESSING, BULK_DEMAND_PROCESSING, DASHBOARD_VIEWER, GP_ADMIN

      • Secretary: EXPENSE_PROCESSING, BULK_DEMAND_PROCESSING, DASHBOARD_VIEWER, GP_ADMIN, COLLECTION_OPERATOR

      • Revenue Collector: COLLECTION_OPERATOR, DASHBOARD_VIEWER

      • Division User: HRMS_ADMIN, DIVISION_ADMIN

      • State User: HRMS_ADMIN, STATE_ADMIN

    • The 'Boundary' should be set to "Ward 1" as per mGramSeva standards.

  2. Run the Python Script:

    • Open the Python script.

    • Provide the following information within the script:

      • Host URL: Specify the target environment (prod, qa, or uat).

      • Username and Password: As per your host URL.

      • Path to the Excel file: Ensure the Excel file is in the same location as the script.

    • Execute the script.

  3. Post-Execution:

    • Do not open the Excel file until the script has completed its task.

    • After the script finishes, open the Excel file to review the results.

    • The Excel file will contain two columns:

      • User ID: If successful, the ID will be present.

      • Status: Will indicate either "Success" or "Failure." If failed, the reason for failure will be provided.

PreviousCreating UsersNextLoading Consumers For mGramSeva

Last updated 1 year ago

Was this helpful?

6KB
updated-user.xlsx
10KB
onBoarding.py