Personas¶
Personas are a way of curating assets for a group of users.
List personas¶
To retrieve a listing of personas, run a search and page the results:
List personas | |
---|---|
1 2 3 4 5 6 |
|
- To start building up a query specifically for personas, you can use the
select()
convenience method onPersona
itself. - The search will only run when you call the
stream()
method, which will then lazily-load each page of results into a stream. - (Optional) You can do any other operations you might do on a stream, such as filtering the results to ensure they are of a certain type.
- This is the pattern for iterating through all results (across pages) covered in the Searching for assets portion of the SDK documentation.
List personas | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
- Begin building up a query combining multiple conditions.
- Ensure that we include only objects of type
Persona
. - Build this query into a new search request.
- Run the search.
- Page through the results (each asset in the results will be a persona).
List personas | |
---|---|
1 2 3 4 5 6 |
|
- To start building up a query specifically for personas, you can use the
select()
convenience method onPersona
itself. - The search will only run when you call the
stream()
method, which will then lazily-load each page of results into a stream. - (Optional) You can do any other operations you might do on a stream, such as filtering the results to ensure they are of a certain type.
- This is the pattern for iterating through all results (across pages) covered in the Searching for assets portion of the SDK documentation.
POST /api/meta/search/indexsearch | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
- Begin building up a query combining multiple conditions.
- Ensure that we include only objects of type
Persona
.
Create a persona¶
To create a new persona:
Create a persona | |
---|---|
1 2 3 |
|
- Like other builder patterns in the SDK, the
creator()
method ensures all required information is provided for the persona. - To create the persona in Atlan, call the
save()
method against the object you've built. - You can then retrieve the resulting details of the created persona from the response (you may of course want to do some type checking first).
Create a persona | |
---|---|
1 2 3 4 5 6 7 |
|
- Like other builder patterns in the SDK, the
create()
method ensures all required information is provided for the persona. - To create the persona in Atlan, call the
save()
method against the object you've built. - You can then retrieve the resulting details of the created persona from the response (you may of course want to do some type checking first).
Create a persona | |
---|---|
1 2 3 |
|
- Like other builder patterns in the SDK, the
creator()
method ensures all required information is provided for the persona. - To create the persona in Atlan, call the
save()
method against the object you've built. - You can then retrieve the resulting details of the created persona from the response (you may of course want to do some type checking first).
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
- Wrap the persona definition in an
entities
array. - Ensure the type of each nested object is exactly
Persona
. - Use the
displayName
to provide the name for the persona as you want it to appear in the UI. - Ensure you explicitly set the access control to enabled when creating it.
- You must provide a
qualifiedName
for the persona, although this will be generated and overwritten by the back-end - You must provide a
name
for the persona, although this will also be normalized by the back-end so will be slightly different once created.
Retrieve a persona¶
To retrieve a persona by its name:
Retrieve a persona | |
---|---|
1 |
|
- The
findByName()
method handles searching for the persona based on its name, which could therefore return more than one result. You can also (optionally) provide a second parameter with a list of attributes to retrieve for each persona.
Retrieve a persona | |
---|---|
1 2 3 4 |
|
- The
asset.find_personas_by_name()
method handles searching for the persona based on its name, which could therefore return more than one result.
Retrieve a persona | |
---|---|
1 |
|
- The
findByName()
method handles searching for the persona based on its name, which could therefore return more than one result. You can also (optionally) provide a second parameter with a list of attributes to retrieve for each persona.
POST /api/meta/search/indexsearch | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
- Define the search to include results for a type exactly matching
Persona
, and... - ... with the exact name of the persona you want to find.
Update a persona¶
To update a persona:
Update a persona | |
---|---|
1 2 3 4 5 6 7 |
|
- Use the
updater()
method to update a persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then chain on any other updates, such as changing the description of the persona.
- To update the persona in Atlan, call the
save()
method against the object you've built.
Update a persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 |
|
- Use the
updater()
method to update a persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then add on any other updates, such as changing the description of the persona.
- To update the persona in Atlan, call the
save()
method with the object you've built.
Update a persona | |
---|---|
1 2 3 4 5 6 7 |
|
- Use the
updater()
method to update a persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then chain on any other updates, such as changing the description of the persona.
- To update the persona in Atlan, call the
save()
method against the object you've built.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
- Wrap all updates in an
entities
array. - For each embedded object, use the exact type name
Persona
. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then add on any other updates, such as changing the description of the persona.
Delete a persona¶
To permanently delete a persona:
Delete a persona | |
---|---|
1 |
|
- To permanently delete a persona in Atlan, call the
purge()
method with the GUID of the persona.
Delete a persona | |
---|---|
1 2 3 4 |
|
- To permanently delete a persona in Atlan, call the
asset.purge_by_guid()
method with the GUID of the persona.
Delete a persona | |
---|---|
1 |
|
- To permanently delete a persona in Atlan, call the
purge()
method with the GUID of the persona.
DELETE /api/meta/entity/bulk?guid=67e08ab7-9688-40bc-ae4a-da2bc06b1588&deleteType=PURGE | |
---|---|
1 |
|
- All the details for deleting the persona are specified in the URL directly. Note that you must provide the GUID of the persona to delete it.
Activate or deactivate a persona¶
Alternatively, if you only want to temporarily deactivate a persona:
Deactivate a persona | |
---|---|
1 2 3 4 5 6 |
|
- Use the
updater()
method to update the persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update. Setting this to
false
will deactivate the persona, while setting it totrue
will activate the persona. - To then apply that activation / deactivation to the persona in Atlan, call the
save()
method against the object you've built.
Deactivate a persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
- Use the
updater()
method to update the persona. - You must provide the qualified_name of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update. Setting this to
False
will deactivate the persona, while setting it toTrue
will activate the persona. - To then apply that activation / deactivation to the persona in Atlan, call the
save()
method with the object you've built.
Deactivate a persona | |
---|---|
1 2 3 4 5 6 |
|
- Use the
updater()
method to update the persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update. Setting this to
false
will deactivate the persona, while setting it totrue
will activate the persona. - To then apply that activation / deactivation to the persona in Atlan, call the
save()
method against the object you've built.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
- Wrap all updates in an
entities
array. - For each embedded object, use the exact type name
Persona
. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update. Setting this to
false
will deactivate the persona, while setting it totrue
will activate the persona.
Add subjects to a persona¶
Similarly, adding subjects to a persona is a matter of updating the persona:
Add subjects to a persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
- Use the
updater()
method to update the persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then chain any number of updates to the
personaGroup()
property. These should be internal names of groups that you want to be controlled through the persona's policies. - Similarly, you can chain any number of updates to the
personaUser()
property. These should be usernames of users that you want to be controlled through the persona's policies. - To then apply those membership updates to the persona in Atlan, call the
save()
method against the object you've built.
Add subjects to a persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
- Use the
updater()
method to update a persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then add any number of groups to the
persona_groups
property. These should be internal names of groups that you want to be controlled through the persona's policies. - Similarly, you can add any number of users to the
persona_users
property. These should be usernames of users that you want to be controlled through the persona's policies. - To then apply those membership updates to the persona in Atlan, call the
save()
method against the object you've built.
Add subjects to a persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
- Use the
updater()
method to update the persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then chain any number of updates to the
personaGroup()
property. These should be internal names of groups that you want to be controlled through the persona's policies. - Similarly, you can chain any number of updates to the
personaUser()
property. These should be usernames of users that you want to be controlled through the persona's policies. - To then apply those membership updates to the persona in Atlan, call the
save()
method against the object you've built.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
- Wrap all updates in an
entities
array. - For each embedded object, use the exact type name
Persona
. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then add any number of groups to the
personaGroups
property. These should be internal names of groups that you want to be controlled through the persona's policies. - Similarly, you can add any number of users to the
personaUsers
property. These should be usernames of users that you want to be controlled through the persona's policies.
Add policies to a persona¶
Do not add policies in bulk
Be careful to only add policies one-by-one to a persona. While the SDKs will allow you to add them in bulk, currently this results in a persona where only the final policy in the batch is active at the end of the operation.
API token must be a connection admin
To manage policies for a connection, the API token must be a connection admin on that connection. When you create a connection using an API token, the API token is automatically made a connection admin; however, for any other connection you must carry out extra steps to make the API token a connection admin.
Add a metadata policy¶
To add a metadata policy to a persona:
Add metadata policy to persona | |
---|---|
1 2 3 4 5 6 7 8 9 |
|
- Use the
createMetadataPolicy()
method to start building a metadata policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying the actions specified next).
-
Specify the set of permissions you want to allow (or deny) in this policy.
To include all permissions
If you want to include all permissions, you can simply use
Arrays.asList(PersonaMetadataAction.values())
. -
Specify the
qualifiedName
of the connection whose assets this policy should control. - Specify the set of
qualifiedName
prefixes for the assets this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all assets within a connection, this can simply be thequalifiedName
of the connection itself. - To then add the policy to the persona in Atlan, call the
save()
method against the policy object you've built.
Add metadata policy to persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
- Use the
create_metadata_policy()
method to start building a metadata policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying the actions specified next).
- Specify the set of permissions you want to allow (or deny) in this policy.
- Specify the
qualified_name
of the connection whose assets this policy should control. - Specify the set of
qualified_name
prefixes for the assets this policy should control. Eachqualified_name
should itself be prefixed withentity:
. To control all assets within a connection, this can simply be thequalified_name
of the connection itself. - To then add the policy to the persona in Atlan, call the
save()
method with the policy object you've built.
Add metadata policy to persona | |
---|---|
1 2 3 4 5 6 7 8 9 |
|
- Use the
createMetadataPolicy()
method to start building a metadata policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying the actions specified next).
-
Specify the set of permissions you want to allow (or deny) in this policy.
To include all permissions
If you want to include all permissions, you can simply use
PersonaMetadataAction.values().toList()
. -
Specify the
qualifiedName
of the connection whose assets this policy should control. - Specify the set of
qualifiedName
prefixes for the assets this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all assets within a connection, this can simply be thequalifiedName
of the connection itself. - To then add the policy to the persona in Atlan, call the
save()
method against the policy object you've built.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
- Wrap all updates in an
entities
array. - For each embedded object, use the exact type name
AuthPolicy
. - You must use a policy subcategory of
metadata
. - You must use a policy category of
persona
. - Specify the type of policy (granting or denying the actions specified next).
- You must use a policy service name of
atlas
. - Specify the
qualifiedName
of the connection whose assets will be controlled by this policy. - Specify the set of
qualifiedName
prefixes for the assets this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all assets within a connection, this can simply be thequalifiedName
of the connection itself. - You must give the policy a name.
- You must give the policy itself a
qualifiedName
, although this will be overwritten by a generated value by the back-end. -
Specify the set of permissions you want to allow (or deny) in this policy.
To review available permissions
To review the available permissions, see the SDKs — for example, the
PersonaMetadataAction
enum in the Java SDK. -
Use an embedded
accessControl
object to define the persona to attach this policy to. - The embedded type name of the
accessControl
object must be exactlyPersona
. - You must provide the GUID of the persona to attach this policy to.
- You must set the policy resource category to
CUSTOM
.
Add a data policy¶
To add a data policy to a persona:
Add data policy to persona | |
---|---|
1 2 3 4 5 6 7 8 |
|
- Use the
createDataPolicy()
method to start building a data policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying access to the data of the resources specified next).
- Specify the
qualifiedName
of the connection whose assets this policy should control. - Specify the set of
qualifiedName
prefixes for the assets this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all assets within a connection, this can simply be thequalifiedName
of the connection itself. - To then add the policy to the persona in Atlan, call the
save()
method against the policy object you've built.
Add data policy to persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
- Use the
create_data_policy()
method to start building a data policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying access to the data of the resources specified next).
- Specify the
qualifiedName
of the connection whose assets this policy should control. - Specify the set of
qualified_name
prefixes for the assets this policy should control. Eachqualified_name
should itself be prefixed withentity:
. To control all assets within a connection, this can simply be thequalified_name
of the connection itself. - To then add the policy to the persona in Atlan, call the
save()
method with the policy object you've built.
Add data policy to persona | |
---|---|
1 2 3 4 5 6 7 8 |
|
- Use the
createDataPolicy()
method to start building a data policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying access to the data of the resources specified next).
- Specify the
qualifiedName
of the connection whose assets this policy should control. - Specify the set of
qualifiedName
prefixes for the assets this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all assets within a connection, this can simply be thequalifiedName
of the connection itself. - To then add the policy to the persona in Atlan, call the
save()
method against the policy object you've built.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
- Wrap all updates in an
entities
array. - For each embedded object, use the exact type name
AuthPolicy
. - You must use a policy subcategory of
data
. - You must use a policy category of
persona
. - Specify the type of policy (granting or denying the actions specified next).
- You must use a policy service name of
heka
. - Specify the
qualifiedName
of the connection whose assets will be controlled by this policy. - You must include a resource of
entity-type:*
in the list of resources. - Specify the set of
qualifiedName
prefixes for the assets this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all assets within a connection, this can simply be thequalifiedName
of the connection itself. - You must give the policy a name.
- You must give the policy itself a
qualifiedName
, although this will be overwritten by a generated value by the back-end. - Specify the set of permissions you want to allow (or deny) in this policy. A data policy for a persona can only allow or deny
select
permissions. - Use an embedded
accessControl
object to define the persona to attach this policy to. - The embedded type name of the
accessControl
object must be exactlyPersona
. - You must provide the GUID of the persona to attach this policy to.
- You must set the policy resource category to
ENTITY
.
Add a glossary policy¶
To add a glossary policy to a persona:
Add glossary policy to persona | |
---|---|
1 2 3 4 5 6 7 8 |
|
- Use the
createGlossaryPolicy()
method to start building a glossary policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying the actions specified next).
-
Specify the set of permissions you want to allow (or deny) in this policy.
To include all permissions
If you want to include all permissions, you can simply use
Arrays.asList(PersonaGlossaryAction.values())
. -
Specify the set of
qualifiedName
s of glossaries this policy should control. EachqualifiedName
should itself be prefixed withentity:
. - To then add the policy to the persona in Atlan, call the
save()
method against the policy object you've built.
Add glossary policy to persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
- Use the
create_glossary_policy()
method to start building a glossary policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying the actions specified next).
- Specify the set of permissions you want to allow (or deny) in this policy.
- Specify the set of
qualified_name
s of glossaries this policy should control. Eachqualified_name
should itself be prefixed withentity:
. - To then add the policy to the persona in Atlan, call the
save()
method with the policy object you've built.
Add glossary policy to persona | |
---|---|
1 2 3 4 5 6 7 8 |
|
- Use the
createGlossaryPolicy()
method to start building a glossary policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the type of policy (granting or denying the actions specified next).
-
Specify the set of permissions you want to allow (or deny) in this policy.
To include all permissions
If you want to include all permissions, you can simply use
PersonaGlossaryAction.values().toList()
. -
Specify the set of
qualifiedName
s of glossaries this policy should control. EachqualifiedName
should itself be prefixed withentity:
. - To then add the policy to the persona in Atlan, call the
save()
method against the policy object you've built.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
- Wrap all updates in an
entities
array. - For each embedded object, use the exact type name
AuthPolicy
. - You must use a policy subcategory of
glossary
. - You must use a policy category of
persona
. - Specify the type of policy (granting or denying the actions specified next).
- You must use a policy service name of
atlas
. - Specify the set of
qualifiedName
s of glossaries this policy should control. EachqualifiedName
should itself be prefixed withentity:
. - You must give the policy a name.
- You must give the policy itself a
qualifiedName
, although this will be overwritten by a generated value by the back-end. -
Specify the set of permissions you want to allow (or deny) in this policy.
To review available permissions
To review the available permissions, see the SDKs — for example, the
PersonaGlossaryAction
enum in the Java SDK. -
Use an embedded
accessControl
object to define the persona to attach this policy to. - The embedded type name of the
accessControl
object must be exactlyPersona
. - You must provide the GUID of the persona to attach this policy to.
- You must set the policy resource category to
CUSTOM
.
Add a domain policy¶
To add a domain policy to a persona:
Add domain policy to persona | |
---|---|
1 2 3 4 5 6 7 |
|
- Use the
createDomainPolicy()
method to start building a domain policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
-
Specify the set of permissions you want to allow in this policy.
To include all permissions
If you want to include all permissions, you can simply use
Arrays.asList(PersonaDomainAction.values())
. -
Specify the set of
qualifiedName
s for the domains this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all domains, this can simply be a single value ofentity:All domains
. - To then add the policy to the persona in Atlan, call the
save()
method against the policy object you've built.
Add domain policy to persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
- Use the
create_domain_policy()
method to start building a domain policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
- Specify the set of permissions you want to allow in this policy.
- Specify the set of
qualified_name
s for the domains this policy should control. Eachqualified_name
should itself be prefixed withentity:
. To control all domains, this can simply be a single value ofentity:All domains
. - To then add the policy to the persona in Atlan, call the
save()
method with the policy object you've built.
Add domain policy to persona | |
---|---|
1 2 3 4 5 6 7 |
|
- Use the
createDomainPolicy()
method to start building a domain policy with the minimal required information. - You must give the policy a name.
- You must provide the GUID of the persona to attach this policy to.
-
Specify the set of permissions you want to allow in this policy.
To include all permissions
If you want to include all permissions, you can simply use
PersonaDomainAction.values().toList()
. -
Specify the set of
qualifiedName
s for the domains this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all domains, this can simply be a single value ofentity:All domains
. - To then add the policy to the persona in Atlan, call the
save()
method against the policy object you've built.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
- Wrap all updates in an
entities
array. - For each embedded object, use the exact type name
AuthPolicy
. - You must use a policy subcategory of
domain
. - You must use a policy category of
persona
. - The type of policy should always be
allow
. - You must use a policy service name of
atlas
. - Specify the set of
qualifiedName
s for the domains this policy should control. EachqualifiedName
should itself be prefixed withentity:
. To control all domains, this can simply be a single value ofentity:All domains
. - You must give the policy a name.
- You must give the policy itself a
qualifiedName
, although this will be overwritten by a generated value by the back-end. -
Specify the set of permissions you want to allow in this policy.
To review available permissions
To review the available permissions, see the SDKs — for example, the
PersonaDomainAction
enum in the Java SDK. -
Use an embedded
accessControl
object to define the persona to attach this policy to. - The embedded type name of the
accessControl
object must be exactlyPersona
. - You must provide the GUID of the persona to attach this policy to.
- You must set the policy resource category to
CUSTOM
.
List policies in a persona¶
To list all the policies in a persona:
List all policies in a persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
- Start by selecting a persona, here using a FluentSearch-based approach.
- You can select the persona by whatever you like, in this example we are selecting based on its name.
- Include the policies for the persona as part of the search results.
- Include all the attributes you want about each policy on the relations of the search results. Here we are including the name, type, actions and resources controlled by each policy.
- You can then directly stream the results of the search.
- For each result of the search (itself a Persona), you can then retrieve its policies and iterate through them.
List all policies in a persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
- Start by selecting a persona, here using a FluentSearch-based approach.
- You can select the persona by whatever you like, in this example we are selecting based on its name.
- Include the policies for the persona as part of the search results.
- Include all the attributes you want about each policy on the relations of the search results. Here we are including the name, type, actions and resources controlled by each policy.
- You can then translate the FluentSearch into a search request.
- Run a search using the search request.
- For each result of the search (itself a Persona), you can then retrieve its policies and iterate through them.
List all policies in a persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
- Start by selecting a persona, here using a FluentSearch-based approach.
- You can select the persona by whatever you like, in this example we are selecting based on its name.
- Include the policies for the persona as part of the search results.
- Include all the attributes you want about each policy on the relations of the search results. Here we are including the name, type, actions and resources controlled by each policy.
- You can then directly stream the results of the search.
- For each result of the search (itself a Persona), you can then retrieve its policies and iterate through them.
POST /api/meta/search/indexsearch | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
- Start by running a search for personas.
- You can select the persona by whatever you like, in this example we are selecting based on its name.
- Include the
policies
for the persona as part of the search results. - Include all the attributes you want about each policy on the relations of the search results. Here we are including the name, type, actions and resources controlled by each policy.
Personalize the persona¶
To personalize which details to show for assets within a persona:
Personalize the persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
- Use the
updater()
method to update a persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then chain preferences on which metadata tabs should be hidden when using this persona.
- You can then set preferences on which asset types should be hidden when using this persona.
- You can then set preferences on which asset filters should be hidden when using this persona.
- You can then set preferences on which custom metadata should be hidden when using this persona.
- To update the persona in Atlan, call the
save()
method against the object you've built.
Personalize the persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
- Use the
updater()
method to update a persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then set preferences on which metadata tabs should be hidden when using this persona.
- You can then set preferences on which asset types should be hidden when using this persona.
- You can then set preferences on which asset filters should be hidden when using this persona.
- You can then set preferences on which custom metadata should be hidden when using this persona.
- To update the persona in Atlan, call the
save()
method with the object you've built.
Personalize the persona | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
- Use the
updater()
method to update a persona. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then chain preferences on which metadata tabs should be hidden when using this persona.
- You can then set preferences on which asset types should be hidden when using this persona.
- You can then set preferences on which asset filters should be hidden when using this persona.
- You can then set preferences on which custom metadata should be hidden when using this persona.
- To update the persona in Atlan, call the
save()
method against the object you've built.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
- Wrap all updates in an
entities
array. - For each embedded object, use the exact type name
Persona
. - You must provide the qualifiedName of the persona.
- You must provide the name of the persona.
- You must provide whether the persona should be active (enabled) or deactivated after the update.
- You can then set preferences on which metadata tabs should be hidden when using this persona.
- You can then set preferences on which asset types should be hidden when using this persona.
- You can then set preferences on which asset filters should be hidden when using this persona.
- You can then set preferences on which custom metadata should be hidden when using this persona.
To review available tabs/filters
To review the values of tabs and filters, refer to the SDKs.
For example, check the AssetSidebarTab
and AssetFilterGroup
enums in the SDKs.