New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get user name/email(unique user) from skype #3660

Closed
Hiranmayee24 opened this Issue Oct 24, 2017 · 10 comments

Comments

Projects
None yet
4 participants
@Hiranmayee24

Hiranmayee24 commented Oct 24, 2017

Issue Description

I am using bot framework and i want skype username/email id (e.g xyz.abc1 as login name).
please let us know how to get user information

@Hiranmayee24

This comment has been minimized.

Hiranmayee24 commented Oct 24, 2017

Is there any API available to get User Information?

@JasonSowers

This comment has been minimized.

Member

JasonSowers commented Oct 24, 2017

Which version of the SDK are you using c# or node?

@Hiranmayee24

This comment has been minimized.

Hiranmayee24 commented Oct 25, 2017

@JasonSowers : We are using Node JS and how can we check the SDK version.
Currently we are using Skype (personal).

Please suggest

@austinhuang0131

This comment has been minimized.

austinhuang0131 commented Oct 25, 2017

@Hiranmayee24 npm list then find botbuilder on the output and the version number is after the @.

You're probably on 3.11.0

@nrobert

This comment has been minimized.

nrobert commented Oct 25, 2017

Unfortunately I think there is currently no way to get these items, you only have access to user name and user Id which is a computed value

@Hiranmayee24

This comment has been minimized.

Hiranmayee24 commented Oct 25, 2017

we are using 3.7.0 v

@Hiranmayee24

This comment has been minimized.

Hiranmayee24 commented Oct 25, 2017

@nrobert : how to get user id ?we are getting user name (session.user.username)

@Hiranmayee24

This comment has been minimized.

Hiranmayee24 commented Oct 26, 2017

Basically i want a unique id of the user which i can use to differentiate user activity

@JasonSowers

This comment has been minimized.

Member

JasonSowers commented Oct 26, 2017

Which SDK are you using? in c# you can get to the user id from Activity.From.Id or Activity.Recipient.Id or from the context context.Activity.From.Id or context.Activity.Recipient.Id. In node it is something very similar, please take a look at the Activity Schema Note there is also a .name property which some channel populate with the users name that could be useful to you.

@austinhuang0131

This comment has been minimized.

austinhuang0131 commented Oct 26, 2017

@Hiranmayee24 You can try session.message.address.user.id as an unique identifer for each users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment