Jump to content

Recommended Posts

Posted

Good morning. We are trying to build a report to find users who are missing the basic user roles we assign to everyone, however when we test this report, we get back people who, at least so far, have all had all of the roles looked for.

We currently have the following on the filter:

h_sys_accounts_roles is not Basic User Role, Self Service User, Docmanager Portal AND h_sys_accounts attribute is not ICT or HR AND h_sys_accounts account status is not 2/archived

Is anyone able to advise where we've gone wrong with this please?

Posted

I use this to check if the script failed and didn't apply the roles that all users should have, you can build on it if you like to look at specific roles

SELECT * FROM h_sys_accounts as a
where h_account_status = '0'
AND NOT Exists (SELECT * FROM h_sys_accounts_roles as b  where a.h_user_id = b.h_user_id)


Basically where the account is not archived (I believe - was a while ago I wrote this) and they are not in the sys account roles table :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...