SELECT 'Google' AS ENDPOINTS__endpointname , 'Google' AS ENDPOINTS__displayname , ep.endpointkey as ENDPOINTS__PRIMARYKEY FROM ENDPOINTS ep where ep.endpointkey=51 limit 1;
select accountkey as accounts__primarykey, 'SUSPENDED FROM IMPORT SERVICE' as accounts__status, CONCAT(name,'-Deleted on-', DATE_FORMAT(NOW(), '%Y-%m-%d %H:%i:%s'))as accounts__name from accounts where endpointkey=527 and name='CN=INRVCH,OU=User Accounts Vista,OU=User Accounts,OU=User Directory,DC=asia-pac,DC=xx,DC=com' and status not in ('SUSPENDED FROM IMPORT SERVICE') limit 1;
a.id IN (select ua.userkey FROM User_accounts ua WHERE ua.accountkey IN ( SELECT a.id FROM Accounts a,Account_entitlements1 ae ,Entitlement_values ev where a.endpointkey = 65 and a.status IN ('1', 'Manually Provisioned') AND ae.accountkey= a.id and ev.id= ae.entitlement_valuekey and ev.customproperty1 = '1')) Link
Comments
Post a Comment