ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / SaaS functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SaaSAdminSubscriptionDeallocateLicense (Function)
In french: SaaSAdminDésactiveLicence
Cancels a subscription license for a SaaS user.
Remarks:
  • To use this function, a SaaS management session must have been started previously with SaaSAdminConnect.
  • The SaaS Administrator will have access to all licenses. A client account manager will only have access to the licenses of his users.
Example
S is dynamic saasSite
P is dynamic saasPricing
C is saasClient dynamic
Sub is saasSubscription dynamic
U is saasUser dynamic
 
S = SaaSAdminFindSite("Forum")
P = SaaSAdminFindPricing("Promo 2010", S)
C = SaaSAdminFindClient("Hybrid")
Sub = SaaSAdminFindSubscription(P, C)
U = SaaSAdminFindUser("mark@hybrid.com")
 
// The usernamed Mark is no longer allowed to benefit from the promotion 2010
SaaSAdminSubscriptionDeallocateLicense(Sub, U)
Syntax

Removing a license by using the subscription Hide the details

<Result> = SaaSAdminSubscriptionDeallocateLicense(<Subscription> , <User>)
<Result>: Boolean
  • True if the operation was performed,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Subscription>: saasSubscription variable
Name of the saasSubscription variable corresponding to the subscription that must be modified in the SaaS database.
<User>: saasUser variable
Name of saasUser variable identifying the user from whom the license will be removed. This user cannot use the subscription anymore.

Removing a license by using the pricing Hide the details

<Result> = SaaSAdminSubscriptionDeallocateLicense(<Pricing> , <SaaS site> , <User>)
<Result>: Boolean
  • True if the operation was performed,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Pricing>: Character string
Name of relevant pricing.
A subscription linked to this pricing must exist for the user client account.
<SaaS site>: Character string
Name of site that owns the pricing.
<User>: Character string
Login of user from whom the license will be removed. This user cannot use the subscription anymore.
Component: wd290com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help