<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Add User Programmatically to site</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120393980" />
  <subtitle>Add User Programmatically to site</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120393980</id>
  <updated>2026-04-04T08:05:12Z</updated>
  <dc:date>2026-04-04T08:05:12Z</dc:date>
  <entry>
    <title>RE: Add User Programmatically to site</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397335" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120397335</id>
    <updated>2020-11-03T11:34:55Z</updated>
    <published>2020-11-03T11:34:55Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;You can add user to specific site by below service.&lt;/p&gt;
&lt;p&gt; GroupLocalService.addUserGroup(userId, groupId);&lt;/p&gt;
&lt;p&gt;You can provide groupid of the site and userid which u want to
  associate site with. &lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-11-03T11:34:55Z</dc:date>
  </entry>
  <entry>
    <title>Add User Programmatically to site</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120393979" />
    <author>
      <name>Sanat D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120393979</id>
    <updated>2020-11-02T18:56:44Z</updated>
    <published>2020-11-02T12:36:08Z</published>
    <summary type="html">&lt;p&gt;I wanted to add user programmatically to the site. I search on the
  internet and got so many blogs regarding adding users but none of them
  I completely understand. So can anyone have an idea about how to add
  User or please provide a link to the blog where I can get all the
  information in details?&lt;/p&gt;
&lt;p&gt;Thanks in advanced.&lt;/p&gt;</summary>
    <dc:creator>Sanat D</dc:creator>
    <dc:date>2020-11-02T12:36:08Z</dc:date>
  </entry>
</feed>
