Create and manage organization profiles¶
组织配置文件允许提供商按部门组织其内部 Marketplace 列表。例如,可以为销售、市场营销和人力资源创建单独组织配置文件。这允许提供商识别并标记特定于其组织业务部门的组织列表,并将业务部门内创建的所有组织列表与同一组织档案关联。
组织配置文件为消费者提供了一种可靠方法,用于确认他们使用的组织列表来自其组织内部的受信任来源。组织配置文件还允许使用者筛选和查找特定于其业务部门或用例的组织列表。
备注
Organization profiles cannot be used outside an organization's Internal Marketplace, and they are unique within an organizational data cloud. Organization profiles can be created and modified programmatically or via Snowsight and then assigned to an organizational listing.
创建和管理组织配置文件需要组织账户。要了解有关组织账户的更多信息,请参阅 组织账户。
组织配置文件格式¶
An organization profile forms part of the Uniform Listing Locator (ULL). The
format of an organization profile is ORGDATACLOUD${org_profile_name}${organizational_listing_name}.
The ULL identifies the organization profile and its associated organizational listing.
The ULL can be used in programmatic queries similar to this example:
SELECT * FROM "ORGDATACLOUD$<ProfileName>$<ListingName>.<SchemaName>.<TableName>;
访问控制要求¶
权限 |
对象 |
备注 |
|---|---|---|
CREATE ORGANIZATION PROFILE |
账户 |
组织配置文件只能通过组织中的组织账户创建。GLOBALORGADMIN 角色已获授 CREATE ORGANIZATION PROFILE 权限。 |
创建组织配置文件¶
To create an organization profile, you can use Snowsight or SQL commands.
Create a new organization profile.
登录 Snowsight。
In the navigation menu, select Data sharing » Provider Studio.
In the right pane, select the Profiles tab.
To create a profile for the Internal Marketplace, select Create profile » Internal profile.
This opens the Create internal provider profile form.
On the Basic information page, specify the following:
Profile title: The title for this profile.
Specifying a title generates a ULL reference name.
ULL reference name: (Optional) Edit the ULL reference name.
Description: Enter a description for the profile.
选择 Next。
On the Profile access page, specify who in the organization can use the profile to publish internal listings.
Entire organization: Anyone in the organization can use the profile.
Selected accounts and roles: Only specific accounts and roles can use the profile.
Select one or more accounts.
By default, all roles in the selected accounts can use the profile.
(Optional) To grant access to specific roles in each account, select the All roles dropdown, then select Selected roles.
Select one or more roles in the account that can use the profile.
选择 Next。
On the Contact information page, specify email addresses for the owner of the profile and for the approver of profile access requests.
选择 Next。
On the Appearance page, select an icon to use as the profile avatar and select the avatar background color.
Upon completion, select one of the following options:
Publish: Publish the profile and make it Live on the Profiles page.
Save as draft: Save the profile without publishing.
Cancel: Discard the profile without saving or publishing.
Previous: Return to a prior page to make changes.
要创建组织配置文件,请使用 CREATE ORGANIZATION PROFILE 并执行类似于以下内容的语句:
USE ROLE GLOBALORGADMIN;
CREATE ORGANIZATION PROFILE MyOrgPROFILE
AS
$$
title: "My Org Profile"
description: "An appropriate desc"
contact: "contact@test.com"
approver_contact: "approver@test.com"
allowed_publishers:
access:
- all_internal_accounts: true
$$ publish=True;
有关组织配置文件清单字段的详细信息,请参阅 组织配置文件清单引用。
将组织配置文件分配给组织列表¶
要将组织配置文件分配给新的或现有的组织列表,可以使用 Snowsight 或 SQL 命令。
将组织配置文件分配给新的列表。
为现有草稿列表分配组织配置文件。
备注
您只能将组织配置文件分配给处于草稿状态的列表。如果组织列表已发布,则无法分配或更改组织配置文件。
登录 Snowsight。
In the navigation menu, select Data sharing » Provider Studio.
在右侧窗格中,选择 Listings 选项卡。
选择列表中的组织列表。
Select the organization profile name below the organizational listing name.
在 Profile 列表中选择组织配置文件。
选择 Save。
您可以使用 ALTER ORGANIZATION PROFILE 命令更新现有列表以使用其他组织配置文件,然后执行类似于以下内容的命令:
记下清单 YAML 中
organization_profile字段的值,该值指定与该列表关联的组织配置文件。
USE ROLE GLOBALORGADMIN;
ALTER LISTING MyLISTING
AS $$
title: "my listings title"
description: "Listing updated for new org profile"
auto_fulfillment:
refresh_type: "FULL_DATABASE"
refresh_schedule: "10 MINUTE"
organization_profile: "MyOrgPROFILE"
organization_targets:
access:
- all_internal_accounts: true
locations:
access_regions:
- name: "ALL"
$$;
有关组织配置文件清单字段的详细信息,请参阅 组织配置文件清单引用。
修改现有的组织列表配置文件¶
默认情况下,组织配置文件中定义的联系支持电子邮件显示在组织列表登录页面上。您可以在更改原始电子邮件地址时指定自定义支持电子邮件地址或 URL。
要将组织配置文件分配给新的或现有的组织列表,可以使用 Snowsight 或 SQL 命令。
要修改列表支持联系人电子邮件地址,请执行以下操作:
登录 Snowsight。
In the navigation menu, select Data sharing » Provider Studio.
在右侧窗格中,点击 Listings 选项卡。
选择列表中的组织列表。
在 Details 部分中,点击支持联系人电子邮件地址旁边的 Edit。
在 Profile 列表中选择 Use custom email or URL。
输入电子邮件地址或 URL。
选择 Save。
要更改现有组织配置文件,请使用 ALTER ORGANIZATION PROFILE 并执行类似于以下内容的语句:
不同于 Snowsight,SQL 命令可用于更改组织配置文件中的许多字段,包括联系人电子邮件地址。
USE ROLE GLOBALORGADMIN;
ALTER ORGANIZATION PROFILE MyOrgPROFILE
AS
$$
title: "New Title"
description: "New desc"
contact: "contact@test.com"
approver_contact: "approver@test.com"
allowed_publishers:
access:
- all_internal_accounts: true
logo: "urn:emoji:smile"
$$
有关组织配置文件清单字段的详细信息,请参阅 组织配置文件清单引用。
查看组织配置文件¶
登录 Snowsight。
In the navigation menu, select Catalog » Internal Marketplace.
浏览可用的配置文件或使用搜索栏查找特定的组织列表并查看其配置文件。
使用 SHOW AVAILABLE ORGANIZATION PROFILES 查找可供您使用的组织配置文件。
SHOW AVAILABLE ORGANIZATION PROFILES;