Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. 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:
    907
    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?