0

Scenario

An application built using parse that has three different types of users

USER TYPE ROLES

user type A - create new users from user type B and C and allocate them tasks. User type B - log in and complete tasks allocated by user type A. User type c - Monitor tasks allocated by user type B.

User A signs up to the application then signs in to the application. They then can create a group of users from both user type B & C , who can log in and complete individual tasks assigned to them by user type A.

My question is this possible with parse ?

1
  • You can just create a new object in the User class Commented Nov 18, 2014 at 14:32

1 Answer 1

1

If I understand your question correctly, you need to set class level permission for the User class. Make sure "Allow client class creation" is set to YES. From there you can do things like create a new class called User A or B.

Creating a new class from current user would be something like:

- (void)newUser {
PFUser *userB = [PFUser objectWithClassName:@"UserB"];
[userB setObject:(whatever you want to add to UserB) forKey:@""];
}

You can even relate your new object to the user who is adding it:

[userB setObject:[PFUser currentUser] forKey:@"creator"];

Here currentUser would be UserA.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.