Skip to content

Personal drive doesn't populate immediately after user creation on second time #3415

Open

Description

@saw-jan

Describe the bug

While getting drives list after creating, deleting and agian creating the same user, sometimes the personal drive is missing.

👉 Also, file and folder creation results in 404 or 409.

Steps to reproduce

  1. Create a user
curl -XPOST https://localhost:9200/graph/v1.0/users -u admin:admin \
-d '{
  "onPremisesSamAccountName": "alice",
  "passwordProfile": {"password": "1234"},
  "displayName": "Alice Hansen",
  "mail": "alice@mail.test"
}' -k
  1. Get drives list by the new user
curl 'https://localhost:9200/graph/v1.0/drives' -u alice:1234 -k
  1. Delete the user
curl -X DELETE 'https://localhost:9200/graph/v1.0/users/%user_id%' -u admin:admin -k
  1. Repeat steps 1-2 and the response should only include the shares drive
{
  "value": [
     // no personal drive
    {
      "driveAlias": "virtual/shares",
      "driveType": "virtual",
      "id": "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668",
      "name": "Shares",
      "root": {
        "eTag": "DECAFC00FEE",
        "id": "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668",
        "webDavUrl": "https://localhost:9200/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668"
      },
      "webUrl": "https://localhost:9200/f/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668"
    }
  ]
}

Use this script to test it with ease: https://gist.github.com/saw-jan/b35afe7d9190e9c9796a63cf421c5ff4

ℹ️ To make this work, we need to wait about 9-10 seconds (before creating user second time or before listing drives on the second try)

Expected behavior

Expected to see personal drive

Actual behavior

No personal drive in the list

Setup

OpenCloud: 7.5.0

Note

This works consistently with OpenCloud 7.4.0

Activity

  1. saw-jan commented on Aug 28, 2026

    @saw-jan
    ContributorAuthor

    Could this be because of #3329
    Commit: 12e85ae

    because the commit (654f0e8) before that is working consistently.
    Commits history page: https://github.com/opencloud-eu/opencloud/commits/main/?before=6ceedcff0eadced82f9980355feb36ce25ef9013+105

  2. saw-jan commented on Aug 31, 2026

    @saw-jan
    ContributorAuthor

    I used OC_LDAP_LOOKUP_CACHE_TTL: 0 to make the desktop client GUI tests pass.

  3. moved this from Qualification to Prio <= 3 in OpenCloud Team Boardon Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions