working devices based on user id