Why does a super admin on multi site get a rest_user_invalid_id error code when requesting user details through REST?

Deleting users with the REST API isn’t supported for multisite, as seen in the source code:

// We don't support delete requests in multisite.
if ( is_multisite() ) {
    return new WP_Error(
        'rest_cannot_delete',
        __( 'The user cannot be deleted.' ),
        array( 'status' => 501 )
    );
}

For GET requests the user ID is checked against is_user_member_of_blog() for the current site. If the user is a super admin but has not been explicitly added to that site then they will not be returned and you will receive the rest_user_invalid_id error.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)