Forum Discussion

Billy's avatar
Billy
Comet
3 months ago
Solved

API Request to get all SDP users

Hi everyone, I'm trying to get all users within my Cato platform. Like in Access > Users when you select SDP Users Activity.    I cannot find any direct way to do it, maybe i'm missing somethi...
  • JessieBryan's avatar
    3 months ago

    Hi Billy,

    Take a look at the entityLookup. I was able to view our SDP users with it.

    query: "query GetVpnUsers($accountID: ID!, $limit: Int = 25, $from: Int = 0) {
      entityLookup(
        accountID: $accountID,
        type: vpnUser, 
        limit: $limit,
        from: $from
      ) {
        items {
          entity {
            id
            name
            type
          }
         description
        }
        total
      }
    }"
    variables: "{
        "accountID": "12345"
    }"