Fixes missing userId param.
Extracts resourceUrl to object level.