1. 程式人生 > >How do you add users? Documentation

How do you add users? Documentation

If you have more than one person working with your Segment Warehouse, you might want to create users for your team so that each person can have a discrete login. The three steps in this section will show you how to create a user, grant usage on a schema and then grant the privileges that the user will need to interact with that schema.

1. Creating a user with the CREATE USER command

The code above in [] is optional, you don't need to group your users or give their credentials an expiration date, the code works without it. However, if you do choose to use those parameters, <abstime> should be formatted as '2015-09-13' which translates to September 13th, 2015.

For instance, you can create a user named stephencolbert as

This creates a user, you can run the following to get a list of users in your database.

Now that we've confirmed that the user has been created, they already have access to the public schema that contains systems-level information about the cluster but we need to give them access to the specific schemas that they'll be working in.

2. GRANT USAGE on the schema to the user we just created

The above SQL command grants the user USAGE priveleges on a schema. Let's assume you want to grant stephencolbert access to your development schema, it would look like below

Our new user now has usage rights on the development schema, now we need to grant the type of SQL commands they'll be able to run against the cluster. For the purposes of this example, we're going to give the user read only privileges.

3. GRANT SELECT privileges so the user can query the tables

The above SQL command grants the user SELECT rights on all tables in the chosen schema. For our stephencolbertuser and the development schema, it would look like below.

Doing these three steps will result in a new user that can query all the tables in a given schema. If you want to give access to more than one schema then you can simply repeat steps 2 and 3 for each additional schema. If you have any questions or if you're running into any issues getting this set up, contact us.

If you have any questions, or see anywhere we can improve our documentation, please let us know!

相關推薦

How do you add users? Documentation

If you have more than one person working with your Segment Warehouse, you might want to create users for your team so that each person can have a discrete

UVA 10943 How do you add 組合數學之隔板法 OR DP

Larry is very bad at math — he usually uses a calculator, which worked well throughout college. Unforunately, he is now struck in a deserted island wi

UVa 10943 How do you add?

題目傳送門 題意:求將數字n分為k個數之和的種類數。高中排列組合的題目,隔板法! 題解:為啥要寫這個題解,因為WA了很多次。可以把一個數字n,看成是n個球,然後用k個隔板把他分開就行。 所以C[n+1][k-1],然後就WA了 #include <iostrea

10943 How do you add?【組合數取餘(遞推)】

 Larry is very bad at math — he usually uses a calculator, whichworked well throughout college. Unforunately, he is now struck ina deser

UVa 10943 - How do you add?

owb buddy num eas alc sum 問題 acc min Description Larry is very bad at math - he usually uses a calculator, which worked well throughout c

How do I add a team member? Documentation

If you are on our Team or Business plan you can add a Team member in your workspace team page and inviting any team members by email. If you are on a Devel

How do you stop Ansible from creating .retry files in the home directory?

files Go director cfg home reat fault int true There are two options that you can add to the [defaults] section of the ansible.cfg file t

docker - how do you disable auto-restart on a container?

command and -o down upd rest bsp ref spa https://stackoverflow.com/questions/37599128/docker-how-do-you-disable-auto-restart-on-a-contain

Redis in python, how do you close the connection?

exec share case exe art done time ise mali down voteaccepted Just use redis.Redis. It uses a connection pool under the hood

How do I add a Foreign Key Field to a ModelForm in Django?

What I would like to do is to display a single form that lets the user: Enter a document title (from Document model

How do you turn off auto-capitalisation in HTML form fields in iOS?

Since iOS 5, type="email" has auto-capitalization disabled automatically, so you simply need: <input type="email"> For other input types, there are

How do you create a dictionary in Java?

用習慣python的 dictionary, 到其他程式語言也會想要用一下。 You’ll want a Map<String, String>. Classes that implement the Map interface include (but are not limited to)

Ask HN: How do you deal with complain rate on SES

Hi all,I run a news letter with AWS SES and the complaint rate is reaching 0.05%. They expect 0.1% complaint rate.I have received zero complaints email fro

Ask HN: How do you stay fresh on the basics of computer science?

I had an uncomfortable experience last week where I realized I'd forgotten the basics of condition variables (in particular, how to prevent the thundering

Ask HN: How do you spend time during compilation?

I feel it's a significant problem when compilation lasts for more than 10s>. To not get bored, I am jumping into random articles during that time, loos

How do you pay for Travel money/Foreign Currency

It would be great to hear how you gain Travel Money/ Foreign Currency and Whether you feel there is need for a better way to cross borders and pay for stuf

Ask HN: How do you measure your funnel?

We are working on a tool to help people measure their conversion funnels. For example:Unique visitors to website -> User Signups -> Paid CustomersTh

Ask HN: How do you handle user money that you have to return

I am thinking about building a system where customers would put money into their account and they can use there balance to purchase things. Whats the best

Ask HN: How do you become the best at something?

I realized that while I'm fairly competent at some things, I'm not really top percentile in anything save my ability to communicate. It's really weighing o

Ask HN: How do you market yourself at your mid

Hello folks,I have a weird situation and if you don't mind, I would like to ask for your advice.I'm having hard time getting hired, both onsite and remotel