-
Notifications
You must be signed in to change notification settings - Fork 333
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
Enhances spo site set
with ability to adding owner without having permissions, Closes #4600
#4861
base: main
Are you sure you want to change the base?
Conversation
Thank you @nicodecleyre! We'll review it ASAP! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, very nicely done! Let's fix some things before we merge..
Question @nicodecleyre: how does this perform in an environment with many sites? I'm asking myself if we should call the admin endpoint all the time or only if the regular endpoint fails. |
Don't know... I will take a look if i can test it on a tenant with 5000+ sites... |
8e1a5e4
to
bf8296e
Compare
Hi @nicodecleyre,whats the status of this PR? Is it ready for review? |
Not yet, gonna test it with a tenant with 5000 sites next week |
How about speed of execution @nicodecleyre? How big was the tenant you tested this on and did you notice performance differences between the old and new way? |
@nicodecleyre, did you have an answer on my question already? |
d55dad1
to
0d43cb2
Compare
sorry about that! Tested it on a tenant with 5050 site collections. |
0d43cb2
to
8bd7581
Compare
Hi @nicodecleyre, Retrieving all tenant sites using the new endpoint has a few drawbacks: You appear to cannot retrieve OneDrive sites like we do with the other endpoint, plus its interface is different from the CSOM request we are normally doing. So I thought: why are we even retrieving the siteId. And it turns out we only use it in one place. On the The following request updates the site title just as well:
So I suggest we change it up a bit:
Together this should be enough, and we can remove the getTenantSites util and implementation entirely. The change will be quite small. Could you update the PR with this implementation? Thanks again for all the work! |
Hi @nicodecleyre, how r u doing on this? Just checking 😀 |
Hi @martinlingstuyl, Did the changes as asked. If i'm not mistaken we still have to use |
Hi @nicodecleyre, About your question: You're right, we still need the This seems to me more straightforward than using Now you've been building this util in another PR. I suggest we wait a bit for a conclusion on the discussion there as to how we're going to handle the util PR's. |
Waiting on the conclusion here |
Hi @nicodecleyre @martinlingstuyl , I see this long discussion here, and I was wondering if the issue mentioned in the topic of this PR has already been resolved with the spo site admin add --asAdmin --primary command. I noticed there were some doubts about using the admin endpoint (the https://contoso-admin.sharepoint.com/_api/SPO.Tenant/ endpoint is used in site admin add). Is there something I should reconsider in this command? |
Hi @mkm17, That command does make this PR less urgent, yes... I don't think I had doubts about using admin endpoints, but more about what endpoint to use so that it covers all types of sites (onedrives, regular sites, group sites) and where the group Id might be found if needed. |
@martinlingstuyl ok, thank you for confirmation. |
Closes #4600