As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I have created new user group via the REST api but there seems to be no tool to list existing groups. If I forget the group id how do I ever find it? Is there any way to see the groups in console?
Thanks
Best Answer
W
Wani
said
about 7 years ago
Hi,
You can use Business Logic to get the list of groups. I created a custom endpoint with following code and I was able to return the list of groups.
function onRequest(request, response, modules) {
var collectionAccess = modules.collectionAccess;
var TransCollection = collectionAccess.collection('group');
var logger = modules.logger;
TransCollection.find( {}, {},
function(err, groups) {
if (err){
logger.error('Query failed: '+ err);
response.error(err);
}else{
logger.info(groups);
response.body = groups;
response.complete(200);
}
});
}
As I said earlier in reply to one of your other forum posts, user groups cannot be created using Kinvey web console. Actually, no actions related to Group API can be taken from web console or Kinvey SDKs. Group API is supported only through REST interface. I would recommend implementing a custom solution for user groups without using Kinvey user groups. That is only if your application has a genuine requirement for such a use case.
You can use Business Logic to get the list of groups. I created a custom endpoint with following code and I was able to return the list of groups.
function onRequest(request, response, modules) {
var collectionAccess = modules.collectionAccess;
var TransCollection = collectionAccess.collection('group');
var logger = modules.logger;
TransCollection.find( {}, {},
function(err, groups) {
if (err){
logger.error('Query failed: '+ err);
response.error(err);
}else{
logger.info(groups);
response.body = groups;
response.complete(200);
}
});
}
As I said earlier in reply to one of your other forum posts, user groups cannot be created using Kinvey web console. Actually, no actions related to Group API can be taken from web console or Kinvey SDKs. Group API is supported only through REST interface. I would recommend implementing a custom solution for user groups without using Kinvey user groups. That is only if your application has a genuine requirement for such a use case.
daniel_sedlacek
I have created new user group via the REST api but there seems to be no tool to list existing groups. If I forget the group id how do I ever find it? Is there any way to see the groups in console?
Thanks
Hi,
You can use Business Logic to get the list of groups. I created a custom endpoint with following code and I was able to return the list of groups.
As I said earlier in reply to one of your other forum posts, user groups cannot be created using Kinvey web console. Actually, no actions related to Group API can be taken from web console or Kinvey SDKs. Group API is supported only through REST interface. I would recommend implementing a custom solution for user groups without using Kinvey user groups. That is only if your application has a genuine requirement for such a use case.
Regards,
Wani
Kinvey Support
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstWani
Hi,
You can use Business Logic to get the list of groups. I created a custom endpoint with following code and I was able to return the list of groups.
As I said earlier in reply to one of your other forum posts, user groups cannot be created using Kinvey web console. Actually, no actions related to Group API can be taken from web console or Kinvey SDKs. Group API is supported only through REST interface. I would recommend implementing a custom solution for user groups without using Kinvey user groups. That is only if your application has a genuine requirement for such a use case.
Regards,
Wani
Kinvey Support
daniel_sedlacek
thanks!
-
Why am I getting "SignatureDoesNotMatch" error when uploading a file?
-
Why am I getting an "IncompleteRequestBody" error when sending a DELETE request?
-
Is there a default sort order to collections fetched without an explicit sort query?
-
Is it possible to set ACLs on all users so that only administrators can query for users (without dis
-
Flex SDK
-
Query Bug in Backend?
-
Can analytics data be retrieved via Java SDK or REST?
-
Accesing REST API from a server without a user?
-
What json is required to assign a user group either read/write?
-
LDAP Authorization
See all 120 topics