This application fetches user information from Genesys Cloud and displays it in a web-based dashboard.
- Display users in grid or list view
- Filter users by department and state
- Search users by name, email, department, or title
- View detailed user information
- Display statistics and charts
- Responsive design for desktop and mobile
- Node.js installed on your system
- Genesys Cloud organization with API credentials
- Internet connectivity to access Genesys Cloud API
- Clone or download this repository
- Install dependencies:
npm install - Create a
.envfile in the root directory with your Genesys Cloud credentials:CLIENT_ID=your_client_id CLIENT_SECRET=your_client_secret REGION=your_region USE_MOCK_DATA=true
To fetch users from Genesys Cloud and save them to a JSON file:
npm run fetch
This will:
- Authenticate with Genesys Cloud
- Fetch all users with pagination
- Save all user information to a file named
genesys_users.json
To start the web server and access the dashboard:
npm run serve
Then open your browser to http://localhost:3000
To run both the API fetcher and web server with auto-restart on file changes:
npm run dev
This application requires access to external APIs, which may be limited in WebContainer environments. If you encounter "socket hang up" errors, try running the application in a local Node.js environment outside of WebContainer.
By default, the application runs in mock data mode to allow for development and testing without requiring actual Genesys Cloud credentials. To use real data:
- Set
USE_MOCK_DATA=falsein your.envfile - Ensure your Genesys Cloud credentials are correct
- Run the application in a local Node.js environment
- Modify the number of mock users by changing
MOCK_USER_COUNTin the.envfile - Customize the UI by editing the CSS in
public/css/styles.css - Add additional features by extending the JavaScript in
public/js/app.js
If you encounter a "socket hang up" error, this is likely due to network connectivity issues or WebContainer limitations. Try running the application in a local Node.js environment.
Verify your CLIENT_ID, CLIENT_SECRET, and REGION in the .env file. Make sure your API credentials have the necessary permissions to access user information.
Genesys Cloud API has rate limits. If you hit these limits, the application will report an error. Consider adding delays between requests if needed.