Help me show the member groups that have access to a protected page:
SELECT
n.id AS NodeId,
n.text AS NodeName
FROM
dbo.umbracoNode n
JOIN
dbo.umbracoAccess a ON n.id = a.nodeId
WHERE
n.trashed = 0
ORDER BY
n.createDate DESC;
Nice! It would be even better if you include a.loginGroup AS MemberGroup in the SELECT to show which member groups have access. Just a thought for more clarity!
SQL query: member groups on protected page
Help me show the member groups that have access to a protected page:
Best regards, Josefine
Nice! It would be even better if you include
a.loginGroup AS MemberGroup
in the SELECT to show which member groups have access. Just a thought for more clarity!Thank you for your reply! :D
It didn't work with a.loginGroup but you gave me an idea and I found it when I used:
SELECT ar.ruleValue AS MemberGroup
LEFT JOIN dbo.umbracoAccessRule ar ON a.id = ar.accessId
Josefine
I'm sorry, Yes the terms I used weren't right—I just added that suggestion as a thought. Glad you found a solution with ar.ruleValue!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.