Teradata Package for Python Function Reference on VantageCloud Lake - grant - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.
Teradata® Package for Python Function Reference on VantageCloud Lake
- Deployment
- VantageCloud
- Edition
- Lake
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.03
- Published
- December 2024
- ft:locale
- en-US
- ft:lastEdition
- 2024-12-19
- dita:id
- TeradataPython_FxRef_Lake_2000
- Product Category
- Teradata Vantage
- teradataml.store.feature_store.feature_store.FeatureStore.grant
- DESCRIPTION:
Grants access on FeatureStore.
Note:
One must have admin access to grant access.
PARAMETERS:
None
RETURNS:
bool
RAISES:
OperationalError
EXAMPLES:
>>> from teradataml import FeatureStore
# Create FeatureStore for repo 'vfs_v1'.
>>> fs = FeatureStore("vfs_v1")
# Setup FeatureStore for this repository.
>>> fs.setup()
True
# Example 1: Grant read access on FeatureStore to user 'BoB'.
>>> fs.grant.read('BoB')
True
# Example 2: Grant write access on FeatureStore to user 'BoB'.
>>> fs.grant.write('BoB')
True
# Example 3: Grant read and write access on FeatureStore to user 'BoB'.
>>> fs.grant.read_write('BoB')
True