Skip to content
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

adding multi-geo sharepoint site resource to catalog using v1.0 Power Shell commands. #3063

Open
naveen354t opened this issue Dec 26, 2024 · 0 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@naveen354t
Copy link

naveen354t commented Dec 26, 2024

Describe the bug

Hello,
we are using the PowerShell SDK to provision catalog in entitlement management and add a SharePoint Online site as a resource. We found there are a few articles that the entitlement management supports Multi-Geo. Here is the article from Microsoft: Multi-geo add resource to catalog.

When I am using the command New-MgEntitlementManagementResourceRequest and use url parameter as japan region provisioned site, it just fails to add.

$params = @{
requestType = "adminAdd"
resource = @{
displayName = $requestObj.requestTitle
description = $requestObj.requestTitle
originId ="https://companyjpn.sharepoint.com/teams/testjapan"
originSystem = "SharePointOnline"
}
catalog = @{
id = $catalogObj.Id
}
}
New-MgEntitlementManagementResourceRequest -BodyParameter $params | Out-Null -ErrorAction Stop
ERROR:
[RequestFailedInOriginSystem] : "Attempted to perform an unauthorized operation.","details"
New-MgEntitlementManagementResourceRequest_Create: Line | 910 | New-MgEntitlementManagementResourceRequest -BodyParameter $pa … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | "Attempted to perform an unauthorized operation.","details" Status: 400 (BadRequest) ErrorCode: RequestFailedInOriginSystem Date: 2024-12-26T11:58:25

Anyone please help in adding multi-geo site as a resource in the catalog? Thanks

Expected behavior

HTTP/1.1 201 Created
Content-type: application/json

{
"id": "acc2294e-f37f-42d3-981d-4e83847ed0ce",
"requestType": "adminAdd",
"state": "delivered"
}

How to reproduce

$params = @{
requestType = "adminAdd"
resource = @{
originId = "https://microsoft.sharepoint.com/sites/Example"
originSystem = "SharePointOnline"
}
catalog = @{
id = "beedadfe-01d5-4025-910b-84abb9369997"
}
}

New-MgEntitlementManagementResourceRequest -BodyParameter $params

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
@naveen354t naveen354t added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Dec 26, 2024
@naveen354t naveen354t changed the title adding multi-geo sharepoint site resource to catalog using v1.0 poweshell commands. adding multi-geo sharepoint site resource to catalog using v1.0 Power Shell commands. Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant