As users now have sessions admin of the server can do similar actions for the users:
- Log all users out: (
/api/v1/admin/user/logout_all)
- Log out all user session: ('/api/v1/admin/user/{username}/logout`) - original endpoint, current behaviour
- Log out user sessions: (
/api/v1/admin/user/{username}/logout?session={session}) - where {session} is the identifier from the UserStatus
Similarly to /user/status the /admin/user/list also has the list of sessions for each user:
export interface UserStatus {
admin: boolean;
login: boolean;
sessions: UserSession[];
username: string;
}
As users now have sessions admin of the server can do similar actions for the users:
/api/v1/admin/user/logout_all)/api/v1/admin/user/{username}/logout?session={session}) - where {session} is the identifier from theUserStatusSimilarly to
/user/statusthe/admin/user/listalso has the list of sessions for each user: