Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Player Authentication Admin

Discussion in 'Authentication' started by Moazan1, Jun 22, 2023.

  1. Moazan1

    Moazan1

    Joined:
    Oct 21, 2022
    Posts:
    3
    Hi, I have been using Unity's Cloud Code Services to access different Unity Game Services. I have been successful so far. Now I have to implement Add Friends functionality inside Friends UGS. But I have to create a system where users can search other users' names and send friend request to them by Id or Name. For searching through users I started trying this API :

    https://services.docs.unity.com/player-auth-admin/v1/#section/Introduction
    https://services.docs.unity.com/pla...er-Authentication-Admin/operation/ListPlayers

    Whenever I try to hit this API it always return this error : https://ibb.co/RpWBXQv

    I have added essential permissions in Service Account and also setup everything according to docs. My basic authorization token is also set as seen in picture.
     
  2. Moazan1

    Moazan1

    Joined:
    Oct 21, 2022
    Posts:
    3
    No worries i found the solution I was creating Post request but it needed Get request.
     
  3. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    881
    You are going to list *all* players, page by page, via that API in order to search for a particular player every time this feature is used? What if there are millions of players?