Not populating data when selection made to AD
kodalianiruddho opened this issue · 16 comments
Hi, I am facing some issues when deploying it. When I choose that "Use AD data to build the org chart" it will not be populated. I already approved API access. But no luck. Please can you guide me if am iI missing any configuration step in between this?
After published It stays like this :
Please help.
Hi @kodalianiruddho. Are you sure you have configured people to report to you in AAD?
Can you maybe share the errors or logs in F12/Developer mode?
Hi @kodalianiruddho. Are you sure you have configured people to report to you in AAD?
Can you maybe share the errors or logs in F12/Developer mode?
Hi @Vansyork
Yes, I have already assigned them. But it's not populating this kind of structure you have shown here.
Hi @kodalianiruddho. Are you sure you have configured people to report to you in AAD?
Can you maybe share the errors or logs in F12/Developer mode?Hi @Vansyork
Yes, I have already assigned them. But it's not populating this kind of structure you have shown here.
When I select list (Org Chart Config List) Chart populated as expected but when choose AD and provide user in "Select user to start building the Org-Chart from AD data" nothing comes.
Hey @kodalianiruddho Sorry for the Delay. Did you resolve your issue? Otherwise. I would need some additional logging to understand the problem.
Hi @Vansyork ,Still not able to resolve this issue.
Same issue here
Package has been updated to SPFx version 1.11.0.
Also, the AD population will not work on local workbench, use the online version.
Use this url to test on any sharepoint Online site:
/_layouts/15/workbench.aspx
If you still have issues now, please provide me with some errors.
Hi @Vansyork,
I am getting this error when try to run the updated solution
Package has been updated to SPFx version 1.11.0.
Also, the AD population will not work on local workbench, use the online version.
Use this url to test on any sharepoint Online site:
_/layouts/15/workbench.aspxIf you still have issues now, please provide me with some errors.
it just doesn't populate any results when using the AD data to build the org chart
The OrgChart uses this Graph call behind the scènes: https://docs.microsoft.com/en-us/graph/api/user-list-directreports?view=graph-rest-1.0&tabs=http
Try this with the graph explorer to see if u get any results. Otherwise you might need to configure this in AAD or in the Admin Center.
Hi @Vansyork,
I am getting this error when try to run the updated solution
Try to do a Gulp Clean, remove previous builds and try again.
Hi @Vansyork,
I am getting this error when try to run the updated solution
Try to do a Gulp Clean, remove previous builds and try again.
Hi @Vansyork
Thanks for your reply. I did the same but still facing the same error.
I did a clean install of my solution and I can reproduce the issue. I'll look into it when I have the time.
Otherwise revert to the previous version and try to check if you have direct reports when calling the graph api directly
Hi @Vansyork,
I am getting this error when try to run the updated solution
Try to do a Gulp Clean, remove previous builds and try again.
Hi @Vansyork
Thanks for your reply. I did the same but still facing the same error.I did a clean install of my solution and I can reproduce the issue. I'll look into it when I have the time.
Otherwise revert to the previous version and try to check if you have direct reports when calling the graph api directly
Issue has been resolved.
The OrgChart uses this Graph call behind the scènes: https://docs.microsoft.com/en-us/graph/api/user-list-directreports?view=graph-rest-1.0&tabs=http
Try this with the graph explorer to see if u get any results. Otherwise you might need to configure this in AAD or in the Admin Center.
Hi, i have same problem... i added web part to the our sharepoint, but if select AD nothing is happend...
in DevTools i'm geting still same issue with permissions
but permissions was configured
When i try graph explorer, return status 200 - OK
Any ideas?
For anyone with this isuue, the SPFX app does not request enough permissions, just update package-solution to :
"webApiPermissionRequests": [
{
"resource": "Microsoft Graph",
"scope": "User.Read User.ReadBasic.All User.Read.All Directory.Read.All"
}
And then go into the SharePoint Admin Portal and approve:
https://-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement