Tenant class: Difference between revisions
From Catglobe Wiki
More actions
Created page with "{{CGscriptClass_Template |Name=<nowiki>Tenant</nowiki> |Description=<nowiki>Represents a SsoTenant.</nowiki> |InheritsFrom=object|Methods= {{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Save</nowiki>|Description=<nowiki>Apply all changes to the SsoTenant</nowiki>}} {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}} |Properties= {{CGscriptProperties_..." |
Nguyenduyan (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
|Description=<nowiki>Represents a SsoTenant.</nowiki> | |Description=<nowiki>Represents a SsoTenant.</nowiki> | ||
|InheritsFrom=object|Methods= | |InheritsFrom=object|Methods= | ||
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>AddPasswordCompatTenantUsers</nowiki>|Parameters= | |||
{{CGscriptParameters_Template|Type=Dictionary|Name=<nowiki>userRoles</nowiki>|Description=<nowiki>Dictionary of user id and array of roles</nowiki>}} | |||
|Description=<nowiki>For backwards compatibility with username/password users, using this you can setup a user to belong to the current tenant with the given role list</nowiki>}} | |||
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>RemovePasswordCompatTenantUsers</nowiki>|Parameters= | |||
{{CGscriptParameters_Template|Type=array|Name=<nowiki>users</nowiki>|Description=<nowiki>User ids</nowiki>}} | |||
|Description=<nowiki>Remove all fake tenant roles for the given user ids</nowiki>}} | |||
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Save</nowiki>|Description=<nowiki>Apply all changes to the SsoTenant</nowiki>}} | {{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>Save</nowiki>|Description=<nowiki>Apply all changes to the SsoTenant</nowiki>}} | ||
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}} | {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}} |
Revision as of 08:48, 14 August 2025
Tenant
Represents a SsoTenant.
Parent class
Inherits from object
Methods
- Empty AddPasswordCompatTenantUsers(Dictionary userRoles "Dictionary of user id and array of roles") - For backwards compatibility with username/password users, using this you can setup a user to belong to the current tenant with the given role list
- Empty RemovePasswordCompatTenantUsers(array users "User ids") - Remove all fake tenant roles for the given user ids
- Empty Save() - Apply all changes to the SsoTenant
- (From object) string ToString() - The string representation of the object.
Properties
- TenantMapping Mapping { get; } - Role mapping and parent folder for the tenant
- string ObjectTypeName { get; } - The name of the type of object.
- TenantOnboarding Onboarding { get; } - Onboarding info for the tenant
- ResourceEdit ResourceModel { get; } - Edit the Resource
- string TenantId { get; set; } - Get/set the tenant id - e.g. for Microsoft this is a guid
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.