How can I get the IDs of each user (the userid value) ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisjiang
    Member
    • Dec 2018
    • 88

    How can I get the IDs of each user (the userid value) ?

    I need to get the id of each user. Is there a way to do that? Thanks!!!
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hello,

    PHP Code:
    $this→getEntityManager()→getRepository('User')→find()→toArray(); 
    
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • chrisjiang
      Member
      • Dec 2018
      • 88

      #3
      Originally posted by item
      Hello,

      PHP Code:
      $this→getEntityManager()→getRepository('User')→find()→toArray(); 
      
      Thanks so much !! But how can I run this code? Possibly to run on the UI of the CRM system?
      Last edited by chrisjiang; 01-22-2020, 01:23 PM.

      Comment

      • eymen.elkum
        Member
        • Aug 2019
        • 41

        #4
        you may want something like this,

        Last edited by eymen.elkum; 01-28-2020, 10:07 AM.

        Comment


        • chrisjiang
          chrisjiang commented
          Editing a comment
          This is what I exactly want!!! Thanks you so much for the great help!!

        • esforim
          esforim commented
          Editing a comment
          Hi eymen, just so you know your link still point to "eb**-so**.com/crm/api"

          Please edit your URL if you want to hide it, if it intentional ignore this.

        • eymen.elkum
          eymen.elkum commented
          Editing a comment
          many thanks espocrm
      Working...