Questions tagged [usermodel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
216 views

Saving/assigning User Group via a plugin

Anyone had experience of assigning a user group when saving or registering a user via a plugin? Tried various combinations of $user->group = 1, $user->group = [1], $user->setGroups([$group]) ...
1
vote
2answers
1k views

Getting the UID of a user model

I want to use the UID to get a user from a url and don't want to use the ID as it is guessable. I know I can do craft()->users->getUserByUid($uid); but after getting the uid, the uid is not on ...