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

User status (active/inactive) mismatch between users and teams/members API responses #27063

Closed
petriaarnio opened this issue May 20, 2024 · 1 comment

Comments

@petriaarnio
Copy link

petriaarnio commented May 20, 2024

Summary

User status (active/inactive) mismatch between users and teams/members API responses

Version: team edition 9.7.1

Steps to reproduce

Deactivate a user who is a member of a team.

Expected behavior

Either:

  1. Both users and teams/members API response has the user's status inactive -> delete_at is nonzero
  2. teams/members API does not have deactivated user in the response

Observed behavior (that appears unintentional)

Deactivated user status still looks active (delete_at = 0) in teams/members API response, but users API has correctly a number in delete_at property.

Example responses:

users API:
{
"id": "1a8r8zkq7prruyxis7imwbed8e",
"create_at": 1640158315104,
"update_at": 1715940346409,
"delete_at": 1715937655584,
"username": "pzsdaapcgeqtzmsutuuqao",
"auth_data": "",
"auth_service": "",
"email": "9cb715d7-14bd-4d32-8b1e-21ca24b2a362@deleteduser.invalid",
"nickname": "",
"first_name": "Deleted",
"last_name": "User",
"position": "",
"roles": "system_user",
"locale": "",
"timezone": {},
"disable_welcome_email": false
}

teams/members:
{
"team_id": "oxe7f7wzyfy97jrqqoa5qoi7gy",
"user_id": "1a8r8zkq7prruyxis7imwbed8e",
"roles": "team_user",
"delete_at": 0,
"scheme_guest": false,
"scheme_user": true,
"scheme_admin": false,
"explicit_roles": ""
},

Possible fixes

@amyblais
Copy link
Member

@amyblais amyblais added Bug Report/Open Bug report/issue Bug Report/Scheduled for Release and removed Bug Report/Open Bug report/issue labels May 21, 2024
@amyblais amyblais added this to the v9.10.0 milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants