Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not populating data when selection made to AD #10

Open
kodalianiruddho opened this issue Jun 11, 2021 · 16 comments
Open

Not populating data when selection made to AD #10

kodalianiruddho opened this issue Jun 11, 2021 · 16 comments
Assignees
Labels
question Further information is requested

Comments

@kodalianiruddho
Copy link

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?
image
After published It stays like this :
image

Please help.

@Vansyork
Copy link
Owner

Hi @kodalianiruddho. Are you sure you have configured people to report to you in AAD?
image

Can you maybe share the errors or logs in F12/Developer mode?

@Vansyork Vansyork added the question Further information is requested label Jun 11, 2021
@Vansyork Vansyork self-assigned this Jun 11, 2021
@kodalianiruddho
Copy link
Author

Hi @kodalianiruddho. Are you sure you have configured people to report to you in AAD?
image

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.
image

@kodalianiruddho
Copy link
Author

Hi @kodalianiruddho. Are you sure you have configured people to report to you in AAD?
image
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.
image

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.

@Vansyork
Copy link
Owner

Hey @kodalianiruddho Sorry for the Delay. Did you resolve your issue? Otherwise. I would need some additional logging to understand the problem.

@kodalianiruddho
Copy link
Author

Hi @Vansyork ,Still not able to resolve this issue.

@Clacardo
Copy link

Same issue here

@Vansyork
Copy link
Owner

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.

@kodalianiruddho
Copy link
Author

Hi @Vansyork,
I am getting this error when try to run the updated solution
image

@Clacardo
Copy link

Clacardo commented Aug 2, 2021

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.

it just doesn't populate any results when using the AD data to build the org chart

@Vansyork
Copy link
Owner

Vansyork commented Aug 2, 2021

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.

@Vansyork
Copy link
Owner

Vansyork commented Aug 2, 2021

Hi @Vansyork,
I am getting this error when try to run the updated solution
image

Try to do a Gulp Clean, remove previous builds and try again.

@kodalianiruddho
Copy link
Author

Hi @Vansyork,
I am getting this error when try to run the updated solution
image

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.

@Vansyork
Copy link
Owner

Vansyork commented Aug 2, 2021

Hi @Vansyork,
I am getting this error when try to run the updated solution
image

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

@Vansyork
Copy link
Owner

Vansyork commented Aug 2, 2021

Hi @Vansyork,
I am getting this error when try to run the updated solution
image

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.

@Zykki
Copy link

Zykki commented Dec 9, 2021

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

image

but permissions was configured
image

When i try graph explorer, return status 200 - OK
Any ideas?

@SharePointPro
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants