Requesting Connected Account Information

Liam C.

Member
This is specifically intended for this addon: https://xenforo.com/community/resources/discord-integration.6528/ however it is set up with connected accounts

My question relates to how do we retrieve connected accounts data? The intention is to be able to request a user's connected account data, so in the context of Discord integration addon, we would be able to use the Xenforo username to then retrieve either the Discord username/ID.

From what I can tell, this is not built into Xenforo (which is a surprise to me!), what would be the suggested move for this to be? Is anyone aware of an addon that does this? Is it possible for Addons to do this?
 
Solution
Sorry I'm a little confused...

The intention here is to be able to view which Discord account is viewed to a specified forums account. In the ideal world, it would be included in the API where we can request all of a user's connected account details but it is not...

The plan is to be able to automate processes with this information, whilst the Discord addon we have now does send alerts t to a Discord channel, we want to make sure we can have our own custom Discord command (we have our own Discord bot, and we already use Xenforo API for certain aspects) where we can do /whos [user] and it would show up their Discord user

Since there is not an API route for this, what would be the suggested method?
Sorry, so once the user connects...
This is specifically intended for this addon: https://xenforo.com/community/resources/discord-integration.6528/ however it is set up with connected accounts

My question relates to how do we retrieve connected accounts data? The intention is to be able to request a user's connected account data, so in the context of Discord integration addon, we would be able to use the Xenforo username to then retrieve either the Discord username/ID.

From what I can tell, this is not built into Xenforo (which is a surprise to me!), what would be the suggested move for this to be? Is anyone aware of an addon that does this? Is it possible for Addons to do this?
You just configure the connection that enables connected accounts, e.g. to Google. Then each user who wants to login with their connected account configures it in their preferences under Connected Accounts.
 
You just configure the connection that enables connected accounts, e.g. to Google. Then each user who wants to login with their connected account configures it in their preferences under Connected Accounts.
Sorry I'm a little confused...

The intention here is to be able to view which Discord account is viewed to a specified forums account. In the ideal world, it would be included in the API where we can request all of a user's connected account details but it is not...

The plan is to be able to automate processes with this information, whilst the Discord addon we have now does send alerts t to a Discord channel, we want to make sure we can have our own custom Discord command (we have our own Discord bot, and we already use Xenforo API for certain aspects) where we can do /whos [user] and it would show up their Discord user

Since there is not an API route for this, what would be the suggested method?
 
Sorry I'm a little confused...

The intention here is to be able to view which Discord account is viewed to a specified forums account. In the ideal world, it would be included in the API where we can request all of a user's connected account details but it is not...

The plan is to be able to automate processes with this information, whilst the Discord addon we have now does send alerts t to a Discord channel, we want to make sure we can have our own custom Discord command (we have our own Discord bot, and we already use Xenforo API for certain aspects) where we can do /whos [user] and it would show up their Discord user

Since there is not an API route for this, what would be the suggested method?
Sorry, so once the user connects the account, you want to be able to pull account details from Discord? That would be part of the Discord add-on, not base, so you should be asking in their thread in Resources. All connected accounts in base Xenforo does is let you set things to allow users to login with credentials from the connected site (e.g. I use my Google account to log into my site). It doesn't actually transfer any account information back and forth. Anything like you seem to be describing would need to be built as an add-on using the API. So, again, the Resources forums.
 
Solution
Back
Top Bottom