Mobile App Development Software
Alpha TransForm - Free Trial
|
Alpha Anywhere - Build Apps for Free
Alpha Software
Documentation
  • Reference
  • API
  • Objects
  • Server
  • Context
  • Security
  • AddUserToRole Method
Parent | Child | Previous | Next
  • AddUserToRole Method
  • AddUserToRoles Method
  • AdministrativeCreateUser Method
  • AdministrativeResetPassword Method
  • ChangeEmail Method
  • ChangePassword Method
  • ChangePasswordQuestionAndAnswer Method
  • CreateRole Method
  • CreateUser Method
  • DeleteRole Method
  • DeleteUser Method
  • GeneratePassword Method
  • GetEmail Method
  • GetLastPasswordChangedDate Method
  • GetPasswordQuestion Method
  • GetRoles Method
  • GetRoleUsers Method
  • GetUser Method
  • GetUserProviderKey Method
  • GetUserRoles Method
  • GetUsers Method
  • GetUsersPaged Method
  • IsCurrentUserInRole Method
  • IsCurrentUserInRoles Method
  • IsUserInRole Method
  • IsUserInRoles Method
  • LockOutUser Method
  • Login Method
  • Logout Method
  • PasswordHasExpired Method
  • RemoveUserFromRole Method
  • RemoveUserFromRoles Method
  • ResetPassword Method
  • RoleExists Method
  • SetExpirePasswordImmediate Method
  • TestPassword Method
  • TestUsername Method
  • UnlockUser Method
  • UserExists Method
  • UserIsLockedOut Method
  • ValidateUser Method
 

AddUserToRole Method

Syntax

Context.Security.AddUserToRole as L (UserName as C, RoleName as C)

Arguments

UserNameCharacter

The user name.

RoleNameCharacter

The name of the role to which the user will be added.

Returns

resultLogical

Returns .T. if the role was added; otherwise .F.

Description

Adds a user to the supplied role.

Discussion

Context.Security.AddUserToRole() adds a user to the supplied role. Check Context.Security.CallResult.Success before using the return value.

Report an issue with this page
Mobile App Development Software

Alpha TransForm - Quickly Build Enterprise Mobile Forms
- Try it for Free

Alpha Anywhere - Low Code Platform for Mobile Developers
- Build Apps for Free
Alpha Software Corporation

781.229.4500
© Copyright 2000-2020 Alpha Software Corporation. All Rights Reserved

Privacy Policy