[Cfapi] What is StorageProviderSyncRootInfo.Id used for, and how to make the storage provider part?

Erik Verbruggen 20 Reputation points
2023-02-23T10:35:30.9333333+00:00

I'm working on a desktop client that uses the Cfapi, and I have some questions about the StorageProviderSyncRootInfo.Id property. First of all, what is it used for in Windows or in the Cfapi? Currently we are using an id that is unique, but doesn't use this pattern: "ProviderName_FolderNameHash". Everything seems to work find, but we are wondering if we should change it, hence the question.

Then second question about the format, specifically the storage provider part (the last part). One our products has spaces (like folders), where a user has a personal space, and shared spaces (like workgroup folders). Should the last part be of the form "user@service.com/Personal" and another sync root with "user@service.com/Workgroup", or just "Personal" and "Workgroup". Or is that up to use to decide how to use that part of the ID?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,440 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
    2023-02-24T02:05:13.6933333+00:00

    Hello,

    Welcome to Microsoft Q&A!

    What is StorageProviderSyncRootInfo.Id used for

    StorageProviderSyncRootInfo.Id Property: An identifier for the sync root.

    An identifier in the form: [Storage Provider ID]![Windows SID]![Account ID]

    [storage provider ID]: The name of your cloud storage provider.

    [Windows SID]: The unique Windows SID that identifies the user.

    [Account ID]: The service provider identifier for this user's current account.

    Then second question about the format, specifically the storage provider part (the last part).

    Some providers require the ability to provide multiple synchronization roots for a user. One example of this is a work and a personal account. The Account ID enables you to have multiple accounts registered for one user. If your provider does support multiple synchronization roots per user, this piece is required.

    For more details, I suggest you could refer to the Doc: Integrate a Cloud Storage Provider

    Thank you.

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful