> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: role() # Method package: wixRouter # Method menu location: wixRouter --> WixRouterUser --> role # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/wix-router-user/role.md # Method Description: Gets the user's role. Gets one of the following roles: + `"Admin"` — The owner of the site. + `"Member"` — A user who is logged in. + `"Visitor"` — A user who is not logged in. > **Note:** The APIs in `WixRouterUser` are only partially functional when previewing your site. View a published version of your site to see their complete functionality. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get the user from the router request ```javascript export function myRouter_Router(request) { let user = request.user; let userId = user.id; // "f6q0fb32-b06r-469f-ag4d-9df89afkj5d9" let role = user.role; // "Admin" } ``` ---