adding getUserDetails method and resource option