Hi,
What api and request do I use to grab other user’s setting that handles joining permissions.
I want to check other peoples join permissions from their profile, is there any way to do this?
Hi,
What api and request do I use to grab other user’s setting that handles joining permissions.
I want to check other peoples join permissions from their profile, is there any way to do this?
It is not possible to see someone else’s join permissions
It’s not possible to grab another person’s permissions settings without their authentication token.
On the website itself you can see if you are able to join a player. Indicating the join button next to their name.
Are you referring to this?
I’m taking a solid guess and say yes…
I’d advise you look at this endpoint, https://presence.roblox.com/v1/presence/users (Presence donks here)
Here is a Node.js example which uses Axios the HTTP client to make the request and my personal favorite: (Getting Started | Axios Docs)
const axios = require("axios");
let axiosInstance = axios.create();
axiosInstance.post(`https://presence.roblox.com/v1/presence/users`, JSON.stringify({
"userIds": [113260028]
})).then(res => {
return res.data;
}).catch(err => {
console.log(err.response.data);
});
Response:
{
"userPresences": [
{
"userPresenceType": 2,
"lastLocation": "3008 - 100 Players",
"placeId": 9240295147,
"rootPlaceId": 9240295147,
"gameId": "ee974e63-63f7-4d5f-a8cc-4118fb529679",
"universeId": 3462404408,
"userId": 113260028,
"lastOnline": "2023-04-16T23:03:49.07Z"
}
]
}
But one small issue! What if their presence is hidden?
Then, the response would look something like this instead:
{
"userPresences": [
{
"userPresenceType": 2,
"lastLocation": "",
"placeId": null,
"rootPlaceId": null,
"gameId": null,
"universeId": null,
"userId": 113260028,
"lastOnline": "2023-04-16T23:03:49.07Z"
}
]
}
Keep in mind the userPresenceType
, you should compare it to a list like this:
{
"Offline": 0,
"Website": 1,
"Playing": 2,
"Editing": 3
}
Cheers mate, this works quite well.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.