Skip to content
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

Authorization on Teams Bot #65

Closed
robertobandeira opened this issue Sep 27, 2017 · 1 comment
Closed

Authorization on Teams Bot #65

robertobandeira opened this issue Sep 27, 2017 · 1 comment

Comments

@robertobandeira
Copy link

So I developed this bot for my company that has a few features to make the employees' lives easier. But some of these features should only be accessible for a few of the employees. Is there anyway you would recommend doing this sort of authorization (checking if the user has access to the feature) without the need for a log in action?

I was thinking of using the "message.From.Id" attribute when the user sends his first message to see if that user in on an authorized-user-list, but I'm not 100% sure if this ID is unique and if it doesn't change over time. Any suggestions or insights?

@RamjotSingh
Copy link
Member

Message.From.Id is unique per bot per user. So if you change your bot it will change. But otherwise on per-bot basis its constant and won't change.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants