Obtain key using the getId method for the user