It might make sense to make this an API function in the user API