Skip to content

Conversation

@ScharfViktor
Copy link
Contributor

@ScharfViktor ScharfViktor commented Sep 24, 2025

  • Removed getUserIdByUserName() → replaced with getAttributeOfCreatedUser($user, 'id'), which reduces the number of requests to /graph/v1.0/users.

  • Added getPersonalSpace(), which retrieves a space by userId (instead of by name) via /graph/v1.0/users/{userId}?%24select=&%24expand=drive, ensuring the correct personal space is found even in case of duplicates (e.g., soft-deleted users).

@ScharfViktor ScharfViktor changed the title getting personal space by userId instead of userName [full-ci] getting personal space by userId instead of userName Sep 25, 2025
@ScharfViktor ScharfViktor marked this pull request as ready for review September 25, 2025 12:47
Copy link
Contributor

@rhafer rhafer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am by no means a PHP coder, so I didn't really review the code style an stuff. But the way you get the personal space now looks fine to me.

@ScharfViktor ScharfViktor merged commit 723340d into main Sep 26, 2025
99 checks passed
@ScharfViktor ScharfViktor deleted the useUserIdInsteadofName branch September 26, 2025 08:51
@openclouders openclouders mentioned this pull request Sep 26, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants