Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/05/2024 03:34 AM
Hi everyone,
Trying to pull signinactivity lastlogindateandtime from Azure AD for particular employeetype, can I do that ? if so how can I add that filter only for that particular attribute? Or I have to go with rest connector ?
Thank you,
Harsha
09/05/2024 08:28 AM
You can do for all not for specific in Azure AD Connector.
for specific you can go with rest connector
09/11/2024 11:21 PM - edited 09/11/2024 11:24 PM
Hi Rushikesh,
Thank you for suggesting that but in the postman if I try filtering out on employeetype it keeps saying its unsupported. Can you suggest where I am going wrong? Please check the screenshot:
This is what I have given the get https://graph.microsoft.com/v1.0/users?$select=displayname,mail,employeeType,signInActivity&$filter=...'
Thank you,
Harsha
09/12/2024 08:46 AM
https://graph.microsoft.com/v1.0/users?$select=displayName,mail,employeeType,signInActivity&$filter=employeeType eq 'A'
09/13/2024 04:56 AM - edited 09/13/2024 07:19 AM
Hi rushikesh,
Thank you for the help I figured the issue with API. I can see the result in postman now but in the saviynt I dont see the data getting pulled and my suspect is some of the accounts dont have the siginactivity thats why it is not importing anything can you help?
JSON:
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"http": {
"url": "https://graph.microsoft.com/v1.0/users?$select=displayName,mail,employeeType,signInActivity&$filter=employeeType%20eq%20'XXXXX%20Account'%20or%20employeeType%20eq%20'XXXXX%20Account%20D'%20or%...",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "value",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "userPrincipalName~#~char",
"lastlogondate": "${(signInActivity?.lastSignInDateTime != null) ? signInActivity.lastSignInDateTime : '1970-01-01T00:00:00Z'}~#~date"
}
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('signInActivity') == null) ? '' : response?.completeResponseMap?.get('signInActivity')}"
}
},
"acctEntParams": {}
}
}
what am I doing wrong here?
Thank you,
Harsha
09/13/2024 05:30 AM
Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️
09/13/2024 05:56 AM
Hi,
Please refer below screenshot from postman, all the sensitive info is scrubbed on the above post as well as below:
Thank you,
Harsha
09/13/2024 06:00 AM
In your json URL i dont see signinactivity added
https://graph.microsoft.com/v1.0/users?$select=displayname,mail,employeeType,signInActivity&$filter=employeeType%20eq%20%27XXXXX%20Account%27%20or%20employeeType%20eq%20%27XXXXX%20Account%20D%27%20or%20employeeType%20eq%20%27XXXX%20Account%200%27&$count=true
09/13/2024 07:21 AM - edited 09/13/2024 07:26 AM
Hi Rushikesh,
It does have the signinactivity filter I can see the result in postman for the first record I dont see signinactivity and there are few accounts which doesnt have signinactivity and my suspect it becuase of those records it is not importing in saviynt.Can you please check above json?
If this doesnt work and if I want to bring signin via azure connector for all the accounts there are 200k+ accounts and as I can see it doesnt seem like it is bringing signin for all the records. what to do in that case?
Thank you,
Harsha
09/13/2024 07:23 AM
Try with 1 user who have value and share logs
09/16/2024 02:53 AM - edited 09/16/2024 02:58 AM
Hi Rushikesh,
Below are few errors I see in the logs please check:
weird part is this connectionJSON worked last month was able to import not full data but atleast batch of 500, it didnt have issues. And there is no change after that.
09/16/2024 07:28 AM
You have disabledDeletedAccounts flag added in status threshold please remove it
09/16/2024 09:15 PM
No I dont have that in the threshold please check below :
09/16/2024 09:56 PM
Import Account JSON
09/05/2024 09:03 AM
@Harsha
Signinactivity for the AzureAD connectiontype is not supported, but according to the Saviynt support team, it will be available in coming versions.
https://ideas.saviynt.com/ideas/EIC-I-5866
You can still use REST connecter and pull the info in to Saviynt.
09/05/2024 09:04 AM
@stalluri Its already working from 24.4.6 and no Idea ticket is needed
Refer link shared above
its already validated
09/05/2024 09:18 AM
@rushikeshvartak
Can you share the ACCOUNT_ATTRIBUTES and ACCOUNT_IMPORT_FIELDS
I tried it on 24.5.0 and 24.5.2, but it didn't work.
09/05/2024 09:27 AM
ACCOUNT_ATTRIBUTES | { "acctLabels": { "customproperty1": "First Name", "customproperty2": "Last Name", "customproperty3": "Office Phone", "customproperty10": "Account Status", "customproperty11": "Employee ID", "customproperty12": "Job Title", "customproperty13": "User Type", "customproperty14": "Directory Synced", "customproperty16": "City", "customproperty22": "Company Name", "customproperty30": "Visibility" }, "colsToPropsMap": { "accountID": "id~#~char", "name": "userPrincipalName~#~char", "displayname": "displayName~#~char", "accounttype": "#CONST#Service Account~#~char", "customproperty1": "givenName~#~char", "customproperty2": "surname~#~char", "customproperty3": "businessPhones~#~char", "customproperty10": "accountEnabled~#~bool", "customproperty11": "employeeId~#~char", "customproperty12": "jobTitle~#~char", "customproperty13": "userType~#~char", "customproperty14": "onPremisesSyncEnabled~#~bool", "customproperty16": "city~#~char", "customproperty17": "manager.userPrincipalName~#~char", "customproperty18": "manager.employeeId~#~char", "customproperty22": "companyName~#~char", "customproperty23": "signInActivity~#~char", "LASTLOGONDATE": "signInActivity.lastSignInDateTime~#~date", "customproperty30": "visibility~#~char" } } |
ACCOUNT_IMPORT_FIELDS | id,userPrincipalName,companyName,givenName,surname,businessPhones,accountEnabled,employeeId,jobTitle,userType,displayName,onPremisesSyncEnabled,city,manager,signInActivity |