Hi
I’m evaluating the chat api useAdminAccess functionalities and have an issue with the spaces:search query - would appreciate if anyone has any ideas/experience to share.
So far I can
Add a member to a space
Make a manager of a space
Update target audience of a space
If you wanted to loop that activity for a domain wide update you would need the space information. I was thinking you could use the space:search along with a query parameter - but it seems just not to be working when I try with any combination of query parameters. The documentation states the customer id needs to be specified so I specify this but seems like it does not recognise any queries.
Search parameter documentation can be found here
Anyone able to get this working? Perhaps I need to raise an bug for issue tracking…
(admin account required to test and UseAdminAccess parameter enabled)
{
“error”: {
“code”: 400,
“message”: “Invalid search query: customer=customer/####abcd4”,
“status”: “INVALID_ARGUMENT”,
“details”: [
{
“@type”: “type.googleapis.com/google.rpc.Help”,
“links”: [
{
“description”: “For example search queries, see the search spaces method reference documentation.”,
“url”: “https://developers.google.com/chat/api/reference/rest/v1/spaces/search”
}
]
}
]
}
}