Start a new topic

How to add a user to a Group

I am working on Kinvey iOS SDK. My requirement is that I want to add a user to specific group at registration time.



Actually in my case there are two Group named General & Special & I want to add a user to General group by default. Could any one have any idea that how to implement this with Kinvey iOS SDk?



public void submit(View view) {

kinveyClient.userGroup().addUserToGroup("13", "15", null new KinveyClientCallback () {

public void onFailure(Throwable t) { ... }

public void onSuccess(UserGroupResponse u) { ... }

});

}





Is there any idea/way to do this in iOS also? Any help would be great. Thanks

Good morning Gagan,



At present the only way to add users to a group for anything other than java is via our rest API. You can read more about that here: http://devcenter.kinvey.com/rest/guides/users#usergroups . We are hoping to add support for this in the future, but do not have any plans to address this in the short term.



Please let me know if you have any other questions.



Thanks,
Thanks Damien for your quick response.

I have chosen rest API for adding a user to group.

Hi there,


Since this question was made 7 months ago, we want to check if there is any other method available to add users? any update?



if not,


can you post here a sample code of how user REST API for that? we could not find example in codex.


thanks

Medpike, I am unsure of your question, please open a separate ticket and be very descriptive of what you're trying to do and I'll try to help you out. Thanks,