Forum Discussion
CreateMigrationJob api not working with ProvisionedMigrationContainers and ProvisionedMigrationQueue
Hello all,
Currently I'm facing the problem when I'm using the ProvisionedMigrationContainersInfocontainer uri for Data, the ProvisionedMigrationContainersInfocontainer uri for MetaData and the ProvisionedMigrationQueueInfo uri for Queue to run the api as below
ctx.Site.CreateMigrationJob(webId, importDataContUriStr, importMetaDataContUriStr, importQueueUriStr);
But I got the error
As I know, the Uri generated by ProvisionedMigrationContainersInfocontainer is not enough permission. It's missing List permission that is required for this api. And the Uri generated by ProvisionedMigrationQueueInfo is also not enough permission. It's missing SharedAccessQueuePermissions.Update permission.
Ex: sp=rw (Read and Write), should be sp=rwl
Ex: sp=rap (Read,Add and Process), should be sp=rau
Ref: https://learn.microsoft.com/en-us/sharepoint/dev/apis/migration-api-overview
But I could not try to gen another SAS uri token to change the permission
Question: is it possible to make this api works with ProvisionedMigrationContainers and ProvisionedMigrationQueue ? Or possible to gen another SAS uri token from ProvisionedMigrationContainersInfocontainer and ProvisionedMigrationQueueInfo
Thanks and regards,
//TanHoangMinhNguyen