Share via


bPaintACLForUser - Solution Sites Routine

This function paints access control lists (ACLs) for a user in an Active Directory store. This is achieved by adding or removing the user to or from <COMPANY_NAME>_ADMINGROUP or <COMPANY_NAME>_USERGROUP.

Definition

Function bPaintACLForUser(
  byVal sUserCN,
  byVal sSubAction,
  byVal iUserPrevPartnerDeskRole,
  byVal iUserPartnerDeskRole)

Parameters

  • sUserCN
    A string containing the common name for the user.
  • sSubAction
    A string containing the subaction.
  • iUserPrevPartnerDeskRole
    An integer specifying the previous PartnerDesk role of the user.
  • iUserPartnerDeskRole
    An integer specifying the current PartnerDesk role of the user.

Return Value

A Boolean indicating whether the user was successfully added or removed. True indicates success. False indicates failure.

Defined in File

services\include\ad_routines.asp

Routines Called

bAddUserToGroup

bRemoveUserFromGroup

EnsureUserProfile

GetOrgAttributeFromID

Called By

bHandlePaintingACLsForUsersInAD

Copyright © 2005 Microsoft Corporation.
All rights reserved.