ClubManager.Api

<back to all web services

SecurityService.GetUserByBranchForAppRequest

Requires Authentication
The following routes are available for this service:
POST,GET/api/Security/GetUserByBranchForApp
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


# @Flags()
class TrainingCourse(IntEnum):
    ADD_MEMBER = 1
    EDIT_MEMBER = 2
    ADD_MEMBERSHIP = 4
    JOURNAL = 8
    HOME = 16
    TILL = 32
    ACCOUNTING = 64
    UNEXPLAINED_PAYMENTS = 128
    BOOKINGS = 256
    USERS = 512


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class User:
    user_id: Optional[int] = None
    user_name: Optional[str] = None
    name: Optional[str] = None
    email: Optional[str] = None
    email_confirmed: Optional[bool] = None
    mobile_phone: Optional[str] = None
    mobile_phone_confirmed: Optional[bool] = None
    confirm_password: Optional[str] = None
    enabled: Optional[bool] = None
    training: Optional[bool] = None
    last_login: Optional[datetime.datetime] = None
    created: Optional[datetime.datetime] = None
    branch_id: Optional[int] = None
    parent_branch_id: Optional[int] = None
    member_id: Optional[int] = None
    roles: Optional[List[str]] = None
    courses_completed: Optional[TrainingCourse] = None
    display_home_notification: Optional[bool] = None
    two_factor_enabled: Optional[bool] = None
    branch_name: Optional[str] = None
    branch_key: Optional[str] = None
    notifications: Optional[bool] = None
    change_password: Optional[datetime.datetime] = None
    activated: Optional[datetime.datetime] = None
    two_factor_channel: Optional[str] = None

Python SecurityService.GetUserByBranchForAppRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/Security/GetUserByBranchForApp HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	AppUserId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	UserId: 0,
	UserName: String,
	Name: String,
	Email: String,
	EmailConfirmed: False,
	MobilePhone: String,
	MobilePhoneConfirmed: False,
	ConfirmPassword: String,
	Enabled: False,
	Training: False,
	LastLogin: 0001-01-01,
	Created: 0001-01-01,
	BranchId: 0,
	ParentBranchId: 0,
	MemberId: 0,
	Roles: 
	[
		String
	],
	CoursesCompleted: 1,
	DisplayHomeNotification: False,
	TwoFactorEnabled: False,
	BranchName: String,
	BranchKey: 00000000000000000000000000000000,
	Notifications: False,
	ChangePassword: 0001-01-01,
	Activated: 0001-01-01,
	TwoFactorChannel: String
}