Get User Details - Node.js SDK | Online Help - Catalyst (2024)

Catalyst Authentication provides some methods to retrieve the details of the application users. You can obtain the user information of the current user, any user, or all users of the application.

Get Details of Current User

The method getCurrentUser() fetches the details of a user on whose scope the function is getting executed. The userManagement reference used in the code snippets is the component instance created earlier.

The promise returned here will be resolved to a JSON object.

Copied// get the details of the current user as a promiselet userManagement = app.userManagement();let userPromise = userManagement.getCurrentUser();userPromise.then(currentUser => { console.log(currentUser);});

Node.js

Copied{ zuid: "1005641433", zaaid: "1005641434", org_id: "1005641434", status: "ACTIVE", is_confirmed: false, email_id: "p.boyle@zylker.com", last_name: "Boyle", created_time: "Aug 12, 2021 12:27 PM", role_details: { role_name: "App User", role_id: "2305000000006024" }, user_type: "App User", user_id: "2305000000007745", locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: []}
Copied{ zuid: 1005641433, zaaid: 1005641434, org_id: 1005641434, status: "ACTIVE", is_confirmed: false, email_id: "p.boyle@zylker.com", last_name: "Boyle", created_time: "Aug 12, 2021 12:27 PM", role_details: { role_name: "App User", role_id: 2305000000006024 }, user_type: "App User", user_id: 2305000000007745, locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: []}

Get User Details by User ID

You can retrieve the details of a particular user by passing the User ID of the user to the getUserDetails() method. The promise is resolved to a JSON object.

Copied//Get a single user's details by passing the user ID let userManagement = app.userManagement(); let userPromise = userManagement.getUserDetails(1510000000109587);userPromise.then(userDetails => { console.log(userDetails);});

A sample response that you will receive for each version is shown below:

Node.js

Copied{ zuid: "1005665160", zaaid: "1005665245", org_id: "1005665245", status: "ACTIVE", is_confirmed: false, email_id: "mikerogers@zylker.com ", last_name: "Rogers", created_time: "Aug 17, 2021 04:55 PM", role_details: { role_name: "App User", role_id: "2136000000007748" }, user_type: "App User", user_id: "2136000000020040", locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: []}
Copied{ zuid: 1005665160, zaaid: 1005665245, org_id: 1005665245, status: "ACTIVE", is_confirmed: false, email_id: "mikerogers@zylker.com", last_name: "Rogers", created_time: "Aug 17, 2021 04:55 PM", role_details: { role_name: "App User", role_id: 2136000000007748 }, user_type: "App User", user_id: 2136000000020040, locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: []}

Get Details of All Users

The getAllUsers() method can fetch the details of all the users who are registered with the application.

The promise returned here will be resolved to an array of objects which contains all user details.

Copied//Get details of all userslet userManagement = app.userManagement();let allUserPromise = userManagement.getAllUsers();allUserPromise.then(allUserDetails => { console.log(allUserDetails);});

A sample response that you will receive for each version is shown below:

Node.js

Copied[ { zuid: "1005648252", zaaid: "1005648253", org_id: "1005648253", status: "ACTIVE", is_confirmed: false, email_id: "p.boyle@zylker.com", last_name: "Boyle", created_time: "Aug 13, 2021 01:36 PM", modified_time: "Aug 13, 2021 01:36 PM", invited_time: "Aug 13, 2021 01:36 PM", role_details: { role_name: "App User", role_id: "2136000000007748" }, user_type: "App User", user_id: "2136000000007774", locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: [] }, { zuid: "1005665160", zaaid: "1005665245", org_id: "1005665245", status: "ACTIVE", is_confirmed: false, email_id: "rsmith@zylker.com ", last_name: "Smith", created_time: "Aug 17, 2021 04:55 PM", modified_time: "Aug 17, 2021 04:55 PM", invited_time: "Aug 17, 2021 04:55 PM", role_details: { role_name: "App User", role_id: "2136000000007748" }, user_type: "App User", user_id: "2136000000020040", locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: [] }]
Copied[ { zuid: 1005648252, zaaid: 1005648253, org_id: 1005648253, status: "ACTIVE", is_confirmed: false, email_id: "p.boyle@zylker.com", last_name: "Boyle", created_time: "Aug 13, 2021 01:36 PM", modified_time: "Aug 13, 2021 01:36 PM", invited_time: "Aug 13, 2021 01:36 PM", role_details: { role_name: "App User", role_id: 2136000000007748 }, user_type: "App User", user_id: 2136000000007774, locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: [] }, { zuid: 1005665160, zaaid: 1005665245, org_id: 1005665245, status: "ACTIVE", is_confirmed: false, email_id: "rsmith@zylker.com", last_name: "Smith", created_time: "Aug 17, 2021 04:55 PM", modified_time: "Aug 17, 2021 04:55 PM", invited_time: "Aug 17, 2021 04:55 PM", role_details: { role_name: "App User", role_id: 2136000000007748 }, user_type: "App User", user_id: 2136000000020040, locale: "us|en|Asia/Kolkata", time_zone: "Asia/Kolkata", project_profiles: [] }]

Contents

  • Get Details of Current User
  • Get User Details by User ID
  • Get Details of All Users
Get User Details - Node.js SDK | Online Help - Catalyst (2024)
Top Articles
Advanced Order Types | Crypto.com
How to connect Google Sheets with Excel | Zapier
Spn 1816 Fmi 9
Satyaprem Ki Katha review: Kartik Aaryan, Kiara Advani shine in this pure love story on a sensitive subject
Kansas Craigslist Free Stuff
Bbc 5Live Schedule
Ohiohealth Esource Employee Login
PGA of America leaving Palm Beach Gardens for Frisco, Texas
My.doculivery.com/Crowncork
WWE-Heldin Nikki A.S.H. verzückt Fans und Kollegen
10 Best Places to Go and Things to Know for a Trip to the Hickory M...
104 Whiley Road Lancaster Ohio
[Birthday Column] Celebrating Sarada's Birthday on 3/31! Looking Back on the Successor to the Uchiha Legacy Who Dreams of Becoming Hokage! | NARUTO OFFICIAL SITE (NARUTO & BORUTO)
Epro Warrant Search
Roster Resource Orioles
Iu Spring Break 2024
Dirt Removal in Burnet, TX ~ Instant Upfront Pricing
Invert Clipping Mask Illustrator
Mahpeople Com Login
Account Suspended
Ge-Tracker Bond
1989 Chevy Caprice For Sale Craigslist
Craigslist Clinton Ar
Breckie Hill Mega Link
Mj Nails Derby Ct
Jc Green Obits
Uncovering The Mystery Behind Crazyjamjam Fanfix Leaked
Del Amo Fashion Center Map
Jeff Nippard Push Pull Program Pdf
Housing Intranet Unt
Why Are The French So Google Feud Answers
South Florida residents must earn more than $100,000 to avoid being 'rent burdened'
A Small Traveling Suitcase Figgerits
Marine Forecast Sandy Hook To Manasquan Inlet
The 38 Best Restaurants in Montreal
R&J Travel And Tours Calendar
Craigslist Georgia Homes For Sale By Owner
Whitehall Preparatory And Fitness Academy Calendar
Collier Urgent Care Park Shore
The Best Restaurants in Dublin - The MICHELIN Guide
Insideaveritt/Myportal
Levothyroxine Ati Template
Ladyva Is She Married
Costco Gas Foster City
My Eschedule Greatpeople Me
Contico Tuff Box Replacement Locks
Mit diesen geheimen Codes verständigen sich Crew-Mitglieder
Join MileSplit to get access to the latest news, films, and events!
Is TinyZone TV Safe?
Wild Fork Foods Login
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 5658

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.