Add friends with username/custom data

Is it possible to add a friend with a username or some other custom data that’s not randomly generated by the backend?

There is AddFriendByNameAsync() that takes the user name of the player

https://docs.unity.com/ugs/en-us/packages/com.unity.services.friends/1.0/api/Unity.Services.Friends.IFriendsService#Unity_Services_Friends_IFriendsService_AddFriendByNameAsync_System_String_

Just to add to that, the original AddFriendByNameAsync used to only support auto generated names however now using the AuthenticationService its possible to use your own user defined names.
See, https://docs.unity.com/ugs/en-us/manual/authentication/manual/player-name-management

I’m aware of that, but the problem is that the names have randomly generated #number attached to them, making it impossible to know what someone’s username is unless they explicitly tell you.

What I want to do is to be able to find friends with a phone number and the only way I found to do that is to have a CloudCode module search through a dummy leaderboard with all the players in it.

Unfortunately, this is not support as Player Name doesn’t have any search functionality.