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

Allow specifying device ID to User Login Admin API #18102

Open
anoadragon453 opened this issue Jan 20, 2025 · 0 comments
Open

Allow specifying device ID to User Login Admin API #18102

anoadragon453 opened this issue Jan 20, 2025 · 0 comments

Comments

@anoadragon453
Copy link
Member

Being able to specify the device ID when using the User Login Admin API when logging in to a user's account is beneficial for several reasons:

  • It allows the user to identify admin tooling based on its device ID.
  • It allows admin tooling to log in to the same device ID repeatedly (i.e. to ensure E2EE continuity between sessions).

Currently the User Login Admin API specifically does not create a device:

This API does not generate a new device for the user, and so will not appear their /devices list, and in general the target user should not be able to tell they have been logged in as.

This is useful for Trust & Safety teams in order to allow them to log in as a user and execute requests without alerting the user to what's going on.

Proposal

A device_id body field is added to the User Login Admin API, for which the value is a string specifying the new device's ID.

By default, if the field is not present, a device is not created (as is the case today). If the field is present, then a device is created.


Note: the behaviour of not creating a device is marked as deprecated in the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant