<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:56 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-1548] Create User on database version 2.4.5</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1548</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;How does one create a user on a 2.4.5 version of MongoDB, but from the C# driver version 2.2? &lt;br/&gt;
I am unfortunately temporarily stuck with a very old MongoDB server version (2.4.5), and am in the process of trying to upgrade both DB, and the C# driver. The driver documentation states compatibility with server 2.4, and so far it seems to be working. Where I am struggling now however is the creation of new users in a database.&lt;br/&gt;
I strongly suspect this will be quite a simple thing, I just can&apos;t for the life of me figure it out...&lt;/p&gt;</description>
                <environment></environment>
        <key id="261389">CSHARP-1548</key>
            <summary>Create User on database version 2.4.5</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kevinza">Kevin Versfeld</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Thu, 28 Jan 2016 11:11:16 +0000</created>
                <updated>Fri, 5 Apr 2019 13:59:30 +0000</updated>
                            <resolved>Thu, 28 Jan 2016 14:38:17 +0000</resolved>
                                    <version>2.2</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1156589" author="craiggwilson" created="Thu, 28 Jan 2016 14:36:23 +0000"  >&lt;p&gt;Gotcha, makes sense. If the above doesn&apos;t work for you, let us know.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="1156587" author="kevinza" created="Thu, 28 Jan 2016 14:35:38 +0000"  >&lt;p&gt;Thanks!&lt;br/&gt;
So the reason is that we run a sort of multi-tenant setup for our application suite (SaaS product) where each client gets their own database. We &quot;generate&quot; on the fly (through another maintenance/admin app of our own) separate environments (including DB) that are specific to the customer, including a specific user account (with private password yada yada) which has access only to that DB. Soon, this process will also be available for clients who want to provision their own environments (so, even more automated than currently).&lt;/p&gt;</comment>
                            <comment id="1156579" author="craiggwilson" created="Thu, 28 Jan 2016 14:31:12 +0000"  >&lt;p&gt;Hi Kevin,&lt;/p&gt;

&lt;p&gt;For server 2.4, you&apos;ll want to insert a users document into the system.users collection. You can see the form of it here: &lt;a href=&quot;https://docs.mongodb.org/v2.4/reference/privilege-documents/#&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/v2.4/reference/privilege-documents/#&lt;/a&gt;&amp;lt;database&amp;gt;.system.users. Basically, get a collection of type BsonDocument, create a BsonDocument using the above format, and call InsertOne.&lt;/p&gt;

&lt;p&gt;Any particular reason you want to do this from the driver instead of the shell?&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsht33:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>