Share via


Services Profile Routines

services\include\check_profile.asp

The following customer and partner services utility routines are related to checking profiles, and are defined in this file:

  • bCheckIfProfileExists
    This function determines whether a specific user profile already exists.
  • bIsPropertyValueAdded
    This function determines if any property values were added in the edit page.
  • bProfileHasChanged
    This function checks whether the posted values for a profile are different than the values for the profile in the Profile store.

services\include\delete_profiles.asp

The following customer and partner services utility routines are related to deleting profiles, and are defined in this file:

services\include\get_profiles.asp

The following customer and partner services utility routines are related to retrieving profiles, and are defined in this file:

  • GetAttributeValueFromProfile
    This function retrieves a property value from a profile.
  • GetOrgAttributeFromID
    This function returns the value of the specified property for an Organization profile.
  • GetUserPropertyFromID
    This function returns the value of a property from the profile of a user.
  • rsGetOrgDetails
    This function retrieves detailed information about the specified organization and returns the result as a Recordset object.
  • rsGetProfileDetails
    This function retrieves detailed information about the specified user or organization profile and returns the result as a Recordset object. It serves as a dispatch function for the functions rsGetOrgDetails and rsGetUserDetails, which do the real work.
  • rsGetProfilesList
    This function retrieves a set of user profiles based on the specified filter criteria, returning the result as a Recordset object.
  • rsGetUserDetails
    This function retrieves the profile for the specified user, and returns the results in a Recordset object.
  • sGetUserFullName
    This function gets the full name (last name + first name) of the user.
  • sGetUserLoginName
    This function gets the login name of a user.

services\include\profiles_common.asp

The following customer and partner services utility routines are related to common profile processing, and are defined in this file:

  • GetODBCTimeStamp
    This function converts a date variant to an Open Database Connectivity (ODBC) timestamp format { ts 'yyyy-mm-dd hh:mm:ss' }.
  • GetTableNameAndWhereClause
    This sub gets the database table name and uses a WHERE clause to search for a given organization ID.
  • HandleSingleQuote
    This function replaces a single quote with a double quote for processing profiles.
  • sAddCriteriaToQuery
    This function builds a Transact-SQL statement.
  • sAddEndDate
    This function adds an End Date clause.
  • sAddSetClause
    This function adds a Set clause.
  • sAddSQLNumber
    This function adds an AND clause for a property of type Number.
  • sAddSQLString
    This function adds an AND "property LIKE value" clause for a property of type String.
  • sAddStartDate
    This function adds a Start Date clause.
  • sConstructWHEREclause
    This function constructs a WHERE clause.

services\include\save_all_profiles.asp

The following customer and partner services utility routines are related to saving all profiles, and are defined in this file:

services\include\save_one_profile.asp

The following customer and partner services utility routines are related to saving a single profile, and are defined in this file:

  • bHandlePaintingACLsForUsersInAD
    This function handles painting of appropriate access control lists (ACLs) for users in Active Directory (adding the users to/from the appropriate Active Directory groups, for example, ADMINGROUP or USERGROUP).
  • bInsertProfile
    This function validates the login name and password of a user and, if successful, creates a new profile.
  • bInsertProfileDetails
    This function inserts property values into an empty profile.
  • bInsertProperty
    This function checks whether the specified property is supported for the user and, if so, adds it to the profile.
  • bSaveProfileAndRedirect
    This function updates the profile properties and redirects the delegated administrator to the services\partner\users.asp page.
  • bSaveProfileDetails
    This function saves the value of each property in the profile. If this is a user profile and Active Directory is used, the access control lists (ACL) are updated.
  • bSaveProperty
    This function saves the specified property.
  • bSaveReadWriteProperty
    This function saves a read/write property.
  • GetActiveUsersOnly
    This function examines the semicolon-separated list of user profile IDs, and returns a similar list containing only those user profile IDs that correspond to users that have an account status of ACCOUNT_ACTIVE.
  • InsertHiddenProperty
    This sub copies particular, hidden properties from the current user profile to the specified profile Recordset object. Currently, only the organization ID of the user can be copied.
  • SaveCommonValueForAllSelectedRecords
    This sub saves a common value to all the selected records.
  • SaveProfileProperty
    This sub saves a property value in a profile.
  • SaveReadOnlyProperty
    This sub saves any read-only property.
  • SaveSAMAccountNameProperty
    This sub saves the SAMAccountName property.
  • SaveUserAccountControlProperty
    This sub saves the User Account Control property (Active Directory specific).
  • SaveUserParentDNProperty
    This sub saves the User ParentDN property (Active Directory specific).
  • SaveUserPartnerDeskRoleProperty
    This sub saves the User Partner Desk Role property.
  • SaveUserPropertyForID
    This sub saves the User property for a user ID.
  • sGetAdminsOnly
    This function determines which users specified by the input parameter sProfileIDs are administrators (for example, the FIELD_USER_PARTNERDESK_ROLE is specified as ROLE_ADMIN) and returns a string that contains the profile IDs of those administrators.
  • sGetUsersOnly
    This function determines which users specified by the input parameter sProfileIDs are users (for example, do not have an admin profile) and returns a string that contains the profile IDs of those users.
  • UpdateSelectActionPropertyName
    This function updates properties changed by the user. The fields associated with the selected properties are updated, as well as the "changed by" and "date updated" values.
  • UpdateUserPasswordProperty
    This sub updates the user password property depending on the current user type (DELEGATED_ADMIN or USER).

Copyright © 2005 Microsoft Corporation.
All rights reserved.